AnyCAD Rapid API 2023
Help you to create a better world!
BufferShape Class Reference
Inheritance diagram for BufferShape:
BufferShapeBase

Public Member Functions

 BufferShape (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial, double deflection)
 
PrimitiveShapeList GetFaces ()
 
PrimitiveShapeList GetEdges ()
 
boolean Build ()
 
boolean ComputeLineDistances ()
 
BufferShape CloneMe ()
 
void SetFaceMaterial (MaterialInstance material)
 
void SetFaceMaterial (long idx, MaterialInstance material)
 
void SetEdgeMaterial (MaterialInstance material)
 
void SetEdgeMaterial (long idx, MaterialInstance material)
 
long GetFaceCount ()
 
void SetVertexColors (long faceIdx, Float32Buffer colorBuffer)
 
void ComputeBoundingBox ()
 
- Public Member Functions inherited from BufferShapeBase
 BufferShapeBase (TopoShape shape, MaterialInstance material, MaterialInstance edgeMaterial, double deflection)
 
TopoShape GetShape ()
 
AxisAlignedBox GetBoundingBox ()
 
void SetBoundingBox (AxisAlignedBox val)
 
boolean GetReady ()
 
double GetDeflection ()
 
void SetDeflection (double val)
 
MaterialInstance GetEdgeMaterial ()
 
MaterialInstance GetFaceMaterial ()
 
boolean GetBuildVertex ()
 
void SetBuildVertex (boolean val)
 
EnumShapeFilter GetDisplayFilter ()
 
void SetDisplayFilter (EnumShapeFilter val)
 
boolean IsNull ()
 
void SetShape (TopoShape shape)
 
void RequestUpdate ()
 
BufferShapeBase Clone ()
 

Static Public Member Functions

static BufferShape Cast (BufferShapeBase bs)
 

Detailed Description

<>
BufferShape

The bridge between BufferGeometry and SceneNode.

Member Function Documentation

◆ Build()

boolean BufferShape.Build ( )

triangulate the shape.

Returns
true if done.

Reimplemented from BufferShapeBase.

◆ ComputeBoundingBox()

void BufferShape.ComputeBoundingBox ( )

Reimplemented from BufferShapeBase.

◆ ComputeLineDistances()

boolean BufferShape.ComputeLineDistances ( )

Reimplemented from BufferShapeBase.

◆ SetEdgeMaterial() [1/2]

void BufferShape.SetEdgeMaterial ( long  idx,
MaterialInstance  material 
)

Reimplemented from BufferShapeBase.

◆ SetEdgeMaterial() [2/2]

void BufferShape.SetEdgeMaterial ( MaterialInstance  material)

Reimplemented from BufferShapeBase.

◆ SetFaceMaterial() [1/2]

void BufferShape.SetFaceMaterial ( long  idx,
MaterialInstance  material 
)

Reimplemented from BufferShapeBase.

◆ SetFaceMaterial() [2/2]

void BufferShape.SetFaceMaterial ( MaterialInstance  material)

Reimplemented from BufferShapeBase.