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

Public Member Functions

EnumTopoShapeType GetShapeType ()
 
boolean IsShapeType (EnumTopoShapeType type)
 
boolean IsNullShape ()
 
GBBox GetBBox ()
 
GBBox GetOptimalBBox ()
 
GTrsf GetLocalTransform ()
 
void SetLocalTransform (GTrsf trf)
 
TopoShape Transformed (GTrsf trf)
 
TopoShapeList GetChildren (EnumTopoShapeType subType)
 
TopoShape FindChild (EnumTopoShapeType subType, int idx)
 
int FindChildIndex (TopoShape subShape)
 
boolean IsOrientable ()
 
EnumTopoOrientation GetOrientation ()
 
void SetOrientation (EnumTopoOrientation orient)
 
TopoShape Oriented (EnumTopoOrientation orient)
 
boolean IsConvex ()
 
boolean IsEqualShape (TopoShape other)
 
boolean IsSameShape (TopoShape other)
 
boolean IsPartnerShape (TopoShape other)
 
boolean IsClosed ()
 
String Write ()
 

Static Public Member Functions

static TopoShape Read (String buffer)
 

Detailed Description

<>
TopoShape

Represent the topology geometry shape.

Member Function Documentation

◆ FindChild()

TopoShape TopoShape.FindChild ( EnumTopoShapeType  subType,
int  idx 
)

Find the specified child shape

Parameters
subTypethe shape type.
idxthe index starting from 0
Returns
the child

◆ FindChildIndex()

int TopoShape.FindChildIndex ( TopoShape  subShape)

Get the inedex of the sub shape.

Parameters
subShapethe sub shape object
Returns
-1 if failed to find

◆ GetBBox()

GBBox TopoShape.GetBBox ( )

Get bounding box��

Returns
the Bounding box

◆ GetChildren()

TopoShapeList TopoShape.GetChildren ( EnumTopoShapeType  subType)

Get the specified children shapes

Parameters
subTypethe shape type.
Returns
the children

◆ GetLocalTransform()

GTrsf TopoShape.GetLocalTransform ( )

Get local transform.

Returns
the transform.

◆ GetOptimalBBox()

GBBox TopoShape.GetOptimalBBox ( )

Get accurate bounding box. with low performance.

Returns
the Bounding box

◆ GetOrientation()

EnumTopoOrientation TopoShape.GetOrientation ( )

Get oritation

◆ GetShapeType()

EnumTopoShapeType TopoShape.GetShapeType ( )

Get shape type

Returns
the shape type

◆ IsClosed()

boolean TopoShape.IsClosed ( )

Returns the closedness flag.

◆ IsConvex()

boolean TopoShape.IsConvex ( )

Returns the convexness flag

Returns
true if convex.

◆ IsEqualShape()

boolean TopoShape.IsEqualShape ( TopoShape  other)

Returns True if two shapes are equal, i.e. if they
share the same TShape with the same Locations and
Orientations.

◆ IsNullShape()

boolean TopoShape.IsNullShape ( )

test if null

Returns
true if shape is null.

◆ IsOrientable()

boolean TopoShape.IsOrientable ( )

Returns the orientability flag.

◆ IsPartnerShape()

boolean TopoShape.IsPartnerShape ( TopoShape  other)

Returns True if two shapes are partners, i.e. if
they share the same TShape. Locations and
Orientations may differ.

◆ IsSameShape()

boolean TopoShape.IsSameShape ( TopoShape  other)

Returns True if two shapes are same, i.e. if they
share the same TShape with the same Locations.
Orientations may differ.

◆ IsShapeType()

boolean TopoShape.IsShapeType ( EnumTopoShapeType  type)

Test if the shape type.

Parameters
typethe type you want to test.
Returns
true if it's the type.

◆ Oriented()

TopoShape TopoShape.Oriented ( EnumTopoOrientation  orient)

Returns a shape similar to <me> with the orientation set to.

Parameters
orientthe orientation.
Returns
the new shape

◆ Read()

static TopoShape TopoShape.Read ( String  buffer)
static

Create from string.

Parameters
bufferthe string content.
Returns
the shape.

◆ Transformed()

TopoShape TopoShape.Transformed ( GTrsf  trf)

Transform the shape to new one.

Parameters
trf
Returns

◆ Write()

String TopoShape.Write ( )

Write to string.

Returns
the string