70001959 PolyFace with Hatch pattern fill

Article 70001959
Type Wish
Product Engine
Version 9001
Date Added 4/23/2021 12:00:00 AM
Fixed 9.9002.0.1 (4/26/2021 12:00:00 AM)
Submitted by Matthew Ross


PolyFace with Hatch pattern fill


In version 9002.0.1 a new entity vdPolyfaceHatched was added
Implements all functionality for the vdPolyface object and additionally the possibility to fill faces with a hatch pattern.
The following additional properties manage the hatch pattern usage for the object
HatchPattern Get/Set the hatch pattern.If it is null the object behaves like single vdPolyface
HatchScale Get/Set the hatch scale of the selected pattern.Default value is 1.0
HatchAngle Get/Set the hatch angle of the selected pattern.Default value is 0.0
HatchOrigin Controls the starting location in World Coordinate System for hatch pattern generation.Default value is null


Saving to other formats like dxf dwg dgn is converted to a single vdPolyface without hatch pattern as this is not supported in other than VDML/VDCL formats
Explode method returns a single vdPolyface without hatch pattern
Hatch pattern fill is always projected to current view plane
If hatch pattern is too small to display in active view zoom, then is rendering as dpi pattern with horizondal lines with offset distance from document.GlobalRenderProperties.DPIPatternOffset
Avoid to use it with entities inside blocks with large number of items when use 3d render modes because it may affects performance.

We also added a new command at the CommandAction like below
summary> Converts a vdPolyface into a vdPolyfaceHatched figure.
param name="polyface">A vdPolyface object or "USER", null so the user picks the polyface on the screen.
returns>True if the operation was succesfull.
public bool cmdConvertToHatchedPolyface(object polyface)

You can find this command in SimpleCad's menu under Modify->3D Operations

Send comments on this topic.