Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
AnswerRe: problem using for() with datagrid - blank cell value Pin
Shrutik Panchal15-Jun-14 12:49
professionalShrutik Panchal15-Jun-14 12:49 
AnswerRe: problem using for() with datagrid - blank cell value Pin
Swinkaran15-Jun-14 14:10
professionalSwinkaran15-Jun-14 14:10 
AnswerRe: problem using for() with datagrid - blank cell value Pin
AshishvermaMCA15-Jun-14 20:07
AshishvermaMCA15-Jun-14 20:07 
AnswerRe: problem using for() with datagrid - blank cell value Pin
V.15-Jun-14 21:11
professionalV.15-Jun-14 21:11 
Questionhow to expire cookies best way in my project Pin
Nishant.Chauhan8013-Jun-14 20:28
Nishant.Chauhan8013-Jun-14 20:28 
AnswerRe: how to expire cookies best way in my project Pin
Mycroft Holmes13-Jun-14 21:02
professionalMycroft Holmes13-Jun-14 21:02 
AnswerRe: how to expire cookies best way in my project Pin
PIEBALDconsult13-Jun-14 21:09
mvePIEBALDconsult13-Jun-14 21:09 
QuestionSharpGL: how to add a solid object to a scene Pin
Member 1075894613-Jun-14 10:02
Member 1075894613-Jun-14 10:02 
I am using SharpGL to add a solid object to a scene by clicking a button.

C#
private void InitElements(Scene scene)
{
    var objectRoot = new SharpGL.SceneGraph.Primitives.Folder() { Name = "Root" };
    scene.SceneContainer.AddChild(objectRoot);
    // This implements free rotation(with translation and rotation).
    var camera = GetCamera();
    float cmX = camera.Position.X; float cmY = camera.Position.Y; float cmZ = camera.Position.Z;
    float tgX = camera.Target.X; float tgY = camera.Target.Y; float tgZ = camera.Target.Z;
    float upX = camera.UpVector.X; float upY = camera.UpVector.Y; float upZ = camera.UpVector.Z;
    objectArcBallEffect = new ArcBallEffect(cmX, cmY, cmZ, tgX, tgY, tgZ, upX, upY, upZ);
    objectRoot.AddEffect(objectArcBallEffect);
    var axisRoot = new SharpGL.SceneGraph.Primitives.Folder() { Name = "axis root" };
    scene.SceneContainer.AddChild(axisRoot);
    axisArcBallEffect = new ArcBallEffect(cmX, cmY, cmZ, tgX, tgY, tgZ, upX, upY, upZ);
    axisRoot.AddEffect(axisArcBallEffect);
    InitLight(objectRoot);
    InitAxis(objectRoot);
    InitAxis(axisRoot);
    InitFrameElement(6, 24, 7, objectRoot);
}


After I initiate the solid elements in scene, I would like to add a solid object to that scene by clicking a button. I successfully add it in scene. But I cannot drag and rotate it with the initial elements in the scene. It means I didn't successfully add it to the same scene. Thanks in advance.

C#
private void btnAddEllement_Click(object sender, EventArgs e)
        {
            var objectRoot = new SharpGL.SceneGraph.Primitives.Folder() { Name = "Root" };
            var scene = this.sceneControl1.Scene;
            addCylinder(objectRoot, 50, 30, 100, 5);
            scene.SceneContainer.AddChild(objectRoot);
        }

Questionnew C# forum Pin
Shady George13-Jun-14 9:29
Shady George13-Jun-14 9:29 
AnswerRe: new C# forum Pin
Dave Kreskowiak13-Jun-14 12:40
mveDave Kreskowiak13-Jun-14 12:40 
GeneralRe: new C# forum Pin
Shady George13-Jun-14 17:21
Shady George13-Jun-14 17:21 
GeneralRe: new C# forum Pin
OriginalGriff13-Jun-14 18:38
mveOriginalGriff13-Jun-14 18:38 
AnswerRe: new C# forum Pin
Mycroft Holmes13-Jun-14 13:17
professionalMycroft Holmes13-Jun-14 13:17 
GeneralRe: new C# forum Pin
Shady George13-Jun-14 17:21
Shady George13-Jun-14 17:21 
GeneralRe: new C# forum Pin
Pete O'Hanlon13-Jun-14 20:52
mvePete O'Hanlon13-Jun-14 20:52 
GeneralRe: new C# forum Pin
harold aptroot13-Jun-14 21:20
harold aptroot13-Jun-14 21:20 
GeneralRe: new C# forum Pin
Pete O'Hanlon16-Jun-14 20:08
mvePete O'Hanlon16-Jun-14 20:08 
AnswerRe: new C# forum Pin
Richard MacCutchan13-Jun-14 21:32
mveRichard MacCutchan13-Jun-14 21:32 
AnswerRe: new C# forum Pin
Eddy Vluggen14-Jun-14 1:45
professionalEddy Vluggen14-Jun-14 1:45 
AnswerRe: new C# forum Pin
Bernhard Hiller15-Jun-14 21:30
Bernhard Hiller15-Jun-14 21:30 
Questionwhich security better for my project Pin
Nishant.Chauhan8013-Jun-14 2:07
Nishant.Chauhan8013-Jun-14 2:07 
AnswerRe: which security better for my project Pin
Richard MacCutchan13-Jun-14 2:30
mveRichard MacCutchan13-Jun-14 2:30 
AnswerRe: which security better for my project Pin
OriginalGriff13-Jun-14 4:38
mveOriginalGriff13-Jun-14 4:38 
QuestionGet audio payload in G729 Pin
julius_cesar13-Jun-14 2:03
julius_cesar13-Jun-14 2:03 
AnswerRe: Get audio payload in G729 Pin
Richard MacCutchan13-Jun-14 2:29
mveRichard MacCutchan13-Jun-14 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.