Properties HeightDirection and Normal in the PlaneVisual3D object HelloSupport Junior Member Posts: 15 Threads: 6 %%TYL_NUMTHANKEDLIKED%% Joined: Jul 2019 Reputation: 0 12-25-2019, 01:37 PM Given the app shown the code as the end of this post, when I first execute I get shown in image1.png.  Then when I move the mouse around I get image2.png (see attachment). What I need to know is how the PlaneVisual3D object is drawn.  For example, suppose in image1.png I wish to see the full rectangles, i.e. have the rectangle drawn along the x-y axis instead of the x-z axis.  How would I do that?  I assume that this has something to do with HeightDirection and Normal but I don't understand how these properties work.  Thanks for any help you can give. Code:```                                                                                                                                                                                                                                                     ``` Attached Files Thumbnail(s)         Find Reply abenedik Administrator Posts: 548 Threads: 8 %%TYL_NUMTHANKEDLIKED%% Joined: Sep 2009 Reputation: 4 12-30-2019, 11:31 AM The orientation of the PlaneVisual3D is defined by Normal and HeightDirection properties. The Normal is a Vector3D that defined the normal vector which is perpendicular to the plane - for example for a horizontal plane it is defined as (0, 1, 0) - pointing up. The HeightDirection is also a Vector3D and defines a direction of the plane's height - for example if plane's Size is defined as (width: 100, height: 10), then the HeightDirection defines in which direction the plane's height is drawn (defined by value 10). You can see two samples of PlaneVisual3D in the "Standard 3D objects / 3D objects cheat sheet" sample. You can also dynamically change those two (and some other properties) of PlaneVisual3D in the "Standard 3D objects / PlaneVisual3D" sample. The WPF 3D uses right handed coordinate system where x is pointing to the right, y up, and z to the viewer (away from the screen). You can visualize the axis orientation with adding ColoredAxisVisual3D (note that the axis colors are XYZ = RGB (x = red, y = green, z = blue). You can also add CameraAxisPanel on top of the 3D scene to see the orientation of the axes - see samples that come with Ab3d.PowerToys for many samples of CameraAxisPanel. You can also change the Normal and HeightDirection properties with opened design window and the changes will be shown immediately. Andrej Benedik Find Reply HelloSupport Junior Member Posts: 15 Threads: 6 %%TYL_NUMTHANKEDLIKED%% Joined: Jul 2019 Reputation: 0 01-05-2020, 08:22 AM Thanks.  This is exactly what I needed.  We can close this now. For the benefit of other users, I want to point out that when you change the value of Normal, you may need to change the value of HeightDirection in order to see the PlaneVisual3D.  For example, suppose we start with the definition:   This gives us the result shown in the first attached image.   But if modify the above so that Normal is "0  0 1", we get the result in the second image (no PlaneVisual3D is visible).  If we then modify the above so that HeightDirection = "0 1 0", we get the result in the third image (PlaneVisual3D is visible).             Find Reply

Forum Jump:

 Users browsing this thread: 1 Guest(s)