ModelDecorator3D question/problem
#2
It is hard to say what is the exact reason for not showing normals. But here are two possibilities:

To show normals you need to assign a GeometryModel3D to TragetModel3D. If it is a Model3DGroup, then normals are not shown (as described in the XML documentation for ShowNormals field - https://www.ab4d.com/help/PowerToys/html...ormals.htm).

The other reason may be that if the TragetModel3D has some parent Visual3D objects with Transformation, you also need to set the RootModelVisual3D to the root Visual3D object. This way the ModelDecorator3D will be able to calculate the transformation that is applied by parent Visual3D objects.


The reason why showing many normals is very slow is that by default normals are shown with arrows. In this case the lines are not hardware accelerated (are generated on the CPU). To prevent that you can set the addArrow parameter in the call to WireframeFactory.CreateNormals to false to create normal lines without arrows. In this case the line rendering will super fast. 

There is currently no option to do that when using ModelDecorator3D. But I have added a new ShowNormalLineArrow property that will be available with the next version of Ab3d.PowerToys and will allow user to show normal lines instead of lines with arrows.
Andrej Benedik
  


Messages In This Thread
ModelDecorator3D question/problem - by mjtrainor - 11-02-2021, 10:03 PM
RE: ModelDecorator3D question/problem - by abenedik - 11-03-2021, 04:58 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)