Properties HeightDirection and Normal in the PlaneVisual3D object
#2
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
  


Messages In This Thread
RE: Properties HeightDirection and Normal in the PlaneVisual3D object - by abenedik - 12-30-2019, 11:31 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)