AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::TopoShape类 参考

拓扑对象 更多...

#include <APITopoShape.h>

Public 成员函数

EnumTopoShapeType GetShapeType () const
 
bool IsNullShape () const
 
AABox GetBBox () const
 
bool IsEqualShape (const TopoShape &shape) const
 
bool IsSameShape (const TopoShape &shape) const
 
TopoShape GetSubShape (int idx, int type) const
 
Matrix4 GetLocalTransform () const
 
void BuildHistory (long shapeId)
 
bool HasHistory () const
 
void UpdateHistory (const TopoShapeHistory &pHistory)
 
TopoShapeHistory GetHistory () const
 

详细描述

拓扑对象

几何对象的拓扑表现形式

成员函数说明

void AnyCAD::API::TopoShape::BuildHistory ( long  shapeId)

Initialize the hisotry;

参数
shapeIdthe id of the shape.
AABox AnyCAD::API::TopoShape::GetBBox ( ) const

获取包围盒。

返回
the Bounding box
TopoShapeHistory AnyCAD::API::TopoShape::GetHistory ( ) const

Get the shape history.

返回
the history.
Matrix4 AnyCAD::API::TopoShape::GetLocalTransform ( ) const

获取局部的变换矩阵.

返回
the transform.
EnumTopoShapeType AnyCAD::API::TopoShape::GetShapeType ( ) const

获取类型。

返回
the TopoShapeShapeType
TopoShape AnyCAD::API::TopoShape::GetSubShape ( int  idx,
int  type 
) const

获取子拓扑结构。

参数
idxthe index
type: Face(1), Edge(2), Vertex(4)
返回
the sub TopoShape
bool AnyCAD::API::TopoShape::HasHistory ( ) const

Test if has history.

返回
true if having.
bool AnyCAD::API::TopoShape::IsEqualShape ( const TopoShape shape) const

判断两个TopoShape是否相等.

参数
shapethe shape to be compared.
返回
true if equal.
bool AnyCAD::API::TopoShape::IsNullShape ( ) const

是否为空。

返回
true if shape is null.
bool AnyCAD::API::TopoShape::IsSameShape ( const TopoShape shape) const

判断是否是同一个TopoShape。

参数
shapethe shape to be compared.
返回
true if same.
void AnyCAD::API::TopoShape::UpdateHistory ( const TopoShapeHistory pHistory)

Set the shape history.

参数
pHistorythe history.

该类的文档由以下文件生成: