PoBaseSetVRML2Mode Method |
Set the VRML2 mode.
Namespace: OIV.MeshViz.Graph
This mode allows the user to configure MeshViz to prepare the conversion in VRML2 format with the best possible result. In this way, MeshViz realizes some particular actions :
Whatever text type specified by the method OIV.MeshViz.Graph.PoBase.SetTextType(OIV.MeshViz.Graph.PoBase.TextTypes), all texts used are OIV.Inventor.Nodes.SoAsciiText in order to minimize VRML2 file size (other text types are tessellated during a VRML2 conversion which increases VRML2 file size).
For all materials generated by MeshViz where the light model is OIV.Inventor.Nodes.SoLightModel.Models.BASE_COLOR (There is no equivalence in VRML2), the emissive component is set at the same value as the diffuse components (By this way, we simulate OIV.Inventor.Nodes.SoLightModel.Models.BASE_COLOR light model).
A Z Offset is added for all coplanar faces generated by MeshViz representation (All these representations are planar as for instance legends so the OIV.Inventor.Nodes.SoAnnotation node solves their problems, but there is no equivalence in VRML2).
This mode is inactive by default.