AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
ClassId | GetClassId () |
EnumTopoShapeType | GetShapeType () |
boolean | IsShapeType (EnumTopoShapeType type) |
boolean | IsNullShape () |
GBBox | GetBBox () |
GBBox | GetOptimalBBox () |
GTrsf | GetLocalTransform () |
TopoShapeList | GetChildren (EnumTopoShapeType subType) |
TopoShape | FindChild (EnumTopoShapeType subType, int idx) |
int | FindChildIndex (TopoShape subShape) |
boolean | IsOrientable () |
TopoShape | Reversed () |
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 () |
Public 成员函数 继承自 AObject | |
ClassId | GetClassId () |
boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
static ClassId | GetStaticClassId () |
static TopoShape | Cast (AObject obj) |
static TopoShape | Read (String buffer) |
static ClassId | GetStaticClassId () |
<>
几何拓扑对象。用来表示一个几何对象。
TopoShape TopoShape.FindChild | ( | EnumTopoShapeType | subType, |
int | idx | ||
) |
Find the specified child shape
subType | the shape type. |
idx | the index starting from 0 |
int TopoShape.FindChildIndex | ( | TopoShape | subShape | ) |
Get the inedex of the sub shape.
subShape | the sub shape object |
GBBox TopoShape.GetBBox | ( | ) |
Get bounding box
TopoShapeList TopoShape.GetChildren | ( | EnumTopoShapeType | subType | ) |
Get the specified children shapes
subType | the shape type. |
GTrsf TopoShape.GetLocalTransform | ( | ) |
Get local transform.
GBBox TopoShape.GetOptimalBBox | ( | ) |
Get accurate bounding box. with low performance.
EnumTopoOrientation TopoShape.GetOrientation | ( | ) |
Get oritation
EnumTopoShapeType TopoShape.GetShapeType | ( | ) |
boolean TopoShape.IsClosed | ( | ) |
Returns the closedness flag.
boolean TopoShape.IsConvex | ( | ) |
Returns the convexness flag
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.
boolean TopoShape.IsNullShape | ( | ) |
test if null
boolean TopoShape.IsOrientable | ( | ) |
Returns the orientability flag.
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.
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.
boolean TopoShape.IsShapeType | ( | EnumTopoShapeType | type | ) |
Test if the shape type.
type | the type you want to test. |
TopoShape TopoShape.Oriented | ( | EnumTopoOrientation | orient | ) |
Returns a shape similar to <me> with the orientation set to.
orient | the orientation. |
|
static |
Create from string.
buffer | the string content. |
TopoShape TopoShape.Reversed | ( | ) |
get the reversed shape
String TopoShape.Write | ( | ) |
Write to string.