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

Get the Geometry property. 更多...

#include <APITopoShapeProperty.h>

Public 成员函数

void SetShape (const TopoShape &shape)
 
Real EdgeLength () const
 
Real SurfaceArea () const
 
Real SolidVolume () const
 
Vector3 CenterOfMass () const
 

详细描述

Get the Geometry property.

TODO:

成员函数说明

Vector3 AnyCAD::API::TopoShapeProperty::CenterOfMass ( ) const

Compute center of the mass.

返回
the center position.
Real AnyCAD::API::TopoShapeProperty::EdgeLength ( ) const

Compute the length of all edges.

返回
the length
void AnyCAD::API::TopoShapeProperty::SetShape ( const TopoShape shape)

Set the TopoShape to compute

参数
shapethe TopoShape
Real AnyCAD::API::TopoShapeProperty::SolidVolume ( ) const

Compute the volume of all solids.

返回
the volume.
Real AnyCAD::API::TopoShapeProperty::SurfaceArea ( ) const

Compute the area of all surfaces.

返回
the area

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