AnyCAD Rapid API 2023
Help you to create a better world!
HatchHatcher Class Reference

Public Member Functions

 HatchHatcher (TopoShape face)
 
TopoShape GetFace ()
 
boolean GetDrawUIso ()
 
void SetDrawUIso (boolean val)
 
long GetNumberUIso ()
 
void SetNumberUIso (long val)
 
boolean GetDrawVIso ()
 
void SetDrawVIso (boolean val)
 
long GetNumberVIso ()
 
void SetNumberVIso (long val)
 
long GetDiscretisation ()
 
void SetDiscretisation (long val)
 
double GetMaximalParameterValue ()
 
void SetMaximalParameterValue (double val)
 
boolean Build ()
 
SceneNode Create (MaterialInstance material)
 
Float32Buffer GetPoints (long idx)
 
long GetUCurveCount ()
 
ParametricCurve GetUCurve (long idx)
 
long GetVCurveCount ()
 
ParametricCurve GetVCurve (long idx)
 
GPntList ComputeIntersectionPoints ()
 

Detailed Description

HatchHatcher
Make hatch lines for face.

Constructor & Destructor Documentation

◆ HatchHatcher()

HatchHatcher.HatchHatcher ( TopoShape  face)

construct the hatcher.

Parameters
facethe input must be face.

Member Function Documentation

◆ Build()

boolean HatchHatcher.Build ( )

Build the lines.

Returns
true if done.

◆ Create()

SceneNode HatchHatcher.Create ( MaterialInstance  material)

Create visible object.

Parameters
materialthe material.
Returns
the SceneNode could be ShapeSceneNode or PrimitiveSceneNode

◆ GetPoints()

Float32Buffer HatchHatcher.GetPoints ( long  idx)

Get the point buffer of line.

Parameters
idxthe line index.
Returns
the buffer.

◆ GetUCurve()

ParametricCurve HatchHatcher.GetUCurve ( long  idx)

Get the idx curve, start from 0.

Parameters
idxthe index.
Returns
the curve.

◆ GetUCurveCount()

long HatchHatcher.GetUCurveCount ( )

Get the hatch curve counts.

Returns
the number.

◆ GetVCurve()

ParametricCurve HatchHatcher.GetVCurve ( long  idx)

Get the idx curve, start from 0.

Parameters
idxthe index.
Returns
the curve.

◆ GetVCurveCount()

long HatchHatcher.GetVCurveCount ( )

Get the hatch curve counts.

Returns
the number.