70002179 vdPolyface improvements

Article 70002179
Type Wish
Product Engine
Version 9003
Date Added 3/21/2022 12:00:00 AM
Fixed 10.1001.0.1 (3/23/2022 12:00:00 AM)
Submitted by Wayne Romer


vdPolyface improvements


In version 1001.0.1 a new property MeshDrawType of vdPolyface was added in order to improve memory manage and performance
Determines the way that the object is drawn.
It can get one of the follwoing values
COMPLEX : The polyface is drawn using multi parameters
TRIANGLES : Each face in the facelist is defined by the first 3 indecies
QUADS : Each face in the facelist is defined by the first 4 indecies
AUTO : Auto check if polyface can use TRIANGLES , QUADS or COMPLEX
NOTE: the document.GlobalRenderProperties.MeshAutoSize used to define the lower limit of the vdPolyface FaceList count above which TRIANGLES or SQUARES can be applied to vdPolyfaces, when vdPolyface.MeshDrawType is AUTO.The default value is 1250 face list count

If the object has no Textures and SmoothAngle, then set the vale to TRIANGLES or QUADS
Set it to AUTO in order the program to check and if possible use one of these values.
Selecting TRIANGLES or QUADS or AUTO , less memory used and improves drawing speed , when the number of faces is too big.
If the object is inside a block reference that uses draw lists, with vdFigure.Draw3DFlag != Draw3DFlagEnum.ExcludeFromList the object ignores this property and the drawn is done using the default procedure
When TRIANGLES or QUADS selected the object is splited to faces packages defined by the vdDocument.GlobalRenderProperties.MeshDrawFaces
vdDocument.GlobalRenderProperties.MeshDrawFaces has defalt value 10000
vdRenderGlobalProperties.SectionClipCoverFaces and vdSectionClip.DrawSectionLines are not supported for TRIANGLES or MeshType.QUADS types
Default value is AUTO

Send comments on this topic.