How do you rotate a 3D model using HelixToolkit?Why does two Transform do not work with a Helix Toolkit ObjectHow do you give a C# Auto-Property a default value?How do I enumerate an enum in C#?How to get StackPanel's children to fill maximum space downward?MVVM: Tutorial from start to finish?How to import a 3D model in WPF using Helix Toolkit?ReSharper “Cannot resolve symbol” even when project buildsWhy not inherit from List<T>?Rotate an object in HelixViewport3D in a WPF appHelix toolkit Rotate 3D ModelHow to rotate 3D model automatically in helix WPF

How could empty set be unique if it could be vacuously false

Subtract the Folded Matrix

Boss wants someone else to lead a project based on the idea I presented to him

"What is the maximum that Player 1 can win?"

Why does independence imply zero correlation?

Do I have to explain the mechanical superiority of the player-character within the fiction of the game?

Is there a difference between an NFC and RFID chip?

How does DC work with natural 20?

I found a password with hashcat, but it doesn't work

In the US, can a former president run again?

I just entered the USA without passport control at Atlanta airport

What happened to Hopper's girlfriend in season one?

What are the current battlegrounds for people’s “rights” in the UK?

What are Elsa's reasons for selecting the Holy Grail on behalf of Donovan?

How many people are necessary to maintain modern civilisation?

Is "Busen" just the area between the breasts?

Dmesg full of I/O errors, smart ok, four disks affected

Is the continuity test limit resistance of a multimeter standard?

Umlaut character order when sorting

Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?

Print one file per line using echo

Covering index used despite missing column

Can I enter the UK for 24 hours from a Schengen area, holding an Indian passport?

What are the pros and cons for the two possible "gear directions" when parking the car on a hill?



How do you rotate a 3D model using HelixToolkit?


Why does two Transform do not work with a Helix Toolkit ObjectHow do you give a C# Auto-Property a default value?How do I enumerate an enum in C#?How to get StackPanel's children to fill maximum space downward?MVVM: Tutorial from start to finish?How to import a 3D model in WPF using Helix Toolkit?ReSharper “Cannot resolve symbol” even when project buildsWhy not inherit from List<T>?Rotate an object in HelixViewport3D in a WPF appHelix toolkit Rotate 3D ModelHow to rotate 3D model automatically in helix WPF






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I need some help rotating a 3D model in a WPF project on visual studios. I have imported the model in through the use of the helix toolkit. But I can not find any example of how to rotate the 3D model online. I've found some C# and xaml examples but they mainly seem to rotate the camera not the model.










share|improve this question






























    0















    I need some help rotating a 3D model in a WPF project on visual studios. I have imported the model in through the use of the helix toolkit. But I can not find any example of how to rotate the 3D model online. I've found some C# and xaml examples but they mainly seem to rotate the camera not the model.










    share|improve this question


























      0












      0








      0








      I need some help rotating a 3D model in a WPF project on visual studios. I have imported the model in through the use of the helix toolkit. But I can not find any example of how to rotate the 3D model online. I've found some C# and xaml examples but they mainly seem to rotate the camera not the model.










      share|improve this question
















      I need some help rotating a 3D model in a WPF project on visual studios. I have imported the model in through the use of the helix toolkit. But I can not find any example of how to rotate the 3D model online. I've found some C# and xaml examples but they mainly seem to rotate the camera not the model.







      c# wpf helix-3d-toolkit






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 26 at 19:06









      zeitnot

      1,068925




      1,068925










      asked Feb 26 at 16:12









      ArashArash

      33




      33






















          2 Answers
          2






          active

          oldest

          votes


















          0














          WPF 3D Rotation



          Create a RotateTransform3D for your GeometryModel3D.Transform






          share|improve this answer























          • Would this work even if I'm importing in a model using the helix tool kit.

            – Arash
            Feb 27 at 20:27


















          0














          I have found it particularly useful to use matrices in order to make tranformations.



          In my case, what I noticed was that usually if you apply a transformation such as a RotateTransform3D, and then apply another transformation using your model's '.transform' property, it overrides the last transform. In most cases, you want the new transformation to be applied over the last one.



          This is how I make my rotations:



          Vector3D axis = new Vector3D (1,0,0) //In case you want to rotate it about the x-axis
          Matrix3D transformationMatrix = model.Content.Transform.Value; //Gets the matrix indicating the current transformation value
          transformationMatrix.Rotate(new Quaternion(axis, angle)) //Makes a rotation transformation over this matrix
          model.Content.Transform = new MatrixTransform3D(transformationMatrix); //Applies the transformation to your model


          Don't forget, if you want the model to rotate on it's own center, instead of '.Rotate', use '.RotateAt' like such:



          transformationMatrix.RotateAt(new Quaternion(axis, angle), modelCenter); //modelCenter is the Point3D variable indicating the center





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54889775%2fhow-do-you-rotate-a-3d-model-using-helixtoolkit%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            WPF 3D Rotation



            Create a RotateTransform3D for your GeometryModel3D.Transform






            share|improve this answer























            • Would this work even if I'm importing in a model using the helix tool kit.

              – Arash
              Feb 27 at 20:27















            0














            WPF 3D Rotation



            Create a RotateTransform3D for your GeometryModel3D.Transform






            share|improve this answer























            • Would this work even if I'm importing in a model using the helix tool kit.

              – Arash
              Feb 27 at 20:27













            0












            0








            0







            WPF 3D Rotation



            Create a RotateTransform3D for your GeometryModel3D.Transform






            share|improve this answer













            WPF 3D Rotation



            Create a RotateTransform3D for your GeometryModel3D.Transform







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 27 at 18:05









            Lance HLance H

            451169




            451169












            • Would this work even if I'm importing in a model using the helix tool kit.

              – Arash
              Feb 27 at 20:27

















            • Would this work even if I'm importing in a model using the helix tool kit.

              – Arash
              Feb 27 at 20:27
















            Would this work even if I'm importing in a model using the helix tool kit.

            – Arash
            Feb 27 at 20:27





            Would this work even if I'm importing in a model using the helix tool kit.

            – Arash
            Feb 27 at 20:27













            0














            I have found it particularly useful to use matrices in order to make tranformations.



            In my case, what I noticed was that usually if you apply a transformation such as a RotateTransform3D, and then apply another transformation using your model's '.transform' property, it overrides the last transform. In most cases, you want the new transformation to be applied over the last one.



            This is how I make my rotations:



            Vector3D axis = new Vector3D (1,0,0) //In case you want to rotate it about the x-axis
            Matrix3D transformationMatrix = model.Content.Transform.Value; //Gets the matrix indicating the current transformation value
            transformationMatrix.Rotate(new Quaternion(axis, angle)) //Makes a rotation transformation over this matrix
            model.Content.Transform = new MatrixTransform3D(transformationMatrix); //Applies the transformation to your model


            Don't forget, if you want the model to rotate on it's own center, instead of '.Rotate', use '.RotateAt' like such:



            transformationMatrix.RotateAt(new Quaternion(axis, angle), modelCenter); //modelCenter is the Point3D variable indicating the center





            share|improve this answer



























              0














              I have found it particularly useful to use matrices in order to make tranformations.



              In my case, what I noticed was that usually if you apply a transformation such as a RotateTransform3D, and then apply another transformation using your model's '.transform' property, it overrides the last transform. In most cases, you want the new transformation to be applied over the last one.



              This is how I make my rotations:



              Vector3D axis = new Vector3D (1,0,0) //In case you want to rotate it about the x-axis
              Matrix3D transformationMatrix = model.Content.Transform.Value; //Gets the matrix indicating the current transformation value
              transformationMatrix.Rotate(new Quaternion(axis, angle)) //Makes a rotation transformation over this matrix
              model.Content.Transform = new MatrixTransform3D(transformationMatrix); //Applies the transformation to your model


              Don't forget, if you want the model to rotate on it's own center, instead of '.Rotate', use '.RotateAt' like such:



              transformationMatrix.RotateAt(new Quaternion(axis, angle), modelCenter); //modelCenter is the Point3D variable indicating the center





              share|improve this answer

























                0












                0








                0







                I have found it particularly useful to use matrices in order to make tranformations.



                In my case, what I noticed was that usually if you apply a transformation such as a RotateTransform3D, and then apply another transformation using your model's '.transform' property, it overrides the last transform. In most cases, you want the new transformation to be applied over the last one.



                This is how I make my rotations:



                Vector3D axis = new Vector3D (1,0,0) //In case you want to rotate it about the x-axis
                Matrix3D transformationMatrix = model.Content.Transform.Value; //Gets the matrix indicating the current transformation value
                transformationMatrix.Rotate(new Quaternion(axis, angle)) //Makes a rotation transformation over this matrix
                model.Content.Transform = new MatrixTransform3D(transformationMatrix); //Applies the transformation to your model


                Don't forget, if you want the model to rotate on it's own center, instead of '.Rotate', use '.RotateAt' like such:



                transformationMatrix.RotateAt(new Quaternion(axis, angle), modelCenter); //modelCenter is the Point3D variable indicating the center





                share|improve this answer













                I have found it particularly useful to use matrices in order to make tranformations.



                In my case, what I noticed was that usually if you apply a transformation such as a RotateTransform3D, and then apply another transformation using your model's '.transform' property, it overrides the last transform. In most cases, you want the new transformation to be applied over the last one.



                This is how I make my rotations:



                Vector3D axis = new Vector3D (1,0,0) //In case you want to rotate it about the x-axis
                Matrix3D transformationMatrix = model.Content.Transform.Value; //Gets the matrix indicating the current transformation value
                transformationMatrix.Rotate(new Quaternion(axis, angle)) //Makes a rotation transformation over this matrix
                model.Content.Transform = new MatrixTransform3D(transformationMatrix); //Applies the transformation to your model


                Don't forget, if you want the model to rotate on it's own center, instead of '.Rotate', use '.RotateAt' like such:



                transformationMatrix.RotateAt(new Quaternion(axis, angle), modelCenter); //modelCenter is the Point3D variable indicating the center






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 6:52









                Hassnain AliHassnain Ali

                737




                737



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54889775%2fhow-do-you-rotate-a-3d-model-using-helixtoolkit%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                    Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?