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

The TopoShapeConvert. 更多...

#include <APITopoShapeConvert.h>

静态 Public 成员函数

static RenderableEntity ToEntity (const TopoShape &pTopoShape, Real tolerance)
 
static SceneNode ToSceneNode (const TopoShape &topoShape, Real tolerance)
 
static EntitySceneNode ToEntityNode (const TopoShape &pTopoShape, Real tolerance)
 
static TopoShapeGroup ToTopoShape (const SceneNode &sceneNode)
 
static EntitySceneNode ToFaceNode (const TopoShape &pTopoShape, Real tolerance)
 
static EntitySceneNode ToEdgeNode (const TopoShape &pTopoShape, Real tolerance)
 
static RenderableEntity CreateFaceEntity (const FloatList &vb, const UIntList &ib, const FloatList &nb, const FloatList &texcb, const AABox &bbox)
 
static RenderableEntity CreateColoredFaceEntity (const FloatList &vb, const UIntList &ib, const FloatList &nb, const FloatList &cb, const AABox &bbox)
 
static RenderableEntity CreateEdgeEntity (const FloatList &vb, const AABox &bbox)
 
static RenderableEntity CreatePointsCloud (const FloatList &buffer, Real pointSize)
 
static ScreenWidget CreateCoordinateWidget ()
 
static AxesWidget CreateAxesWidget ()
 
static Real Deflection ()
 
static void SetDeflection (Real val)
 

详细描述

The TopoShapeConvert.

TODO:

成员函数说明

static AxesWidget AnyCAD::API::TopoShapeConvert::CreateAxesWidget ( )
static

Create the axes widget.

返回
the AxesWidget
static RenderableEntity AnyCAD::API::TopoShapeConvert::CreateColoredFaceEntity ( const FloatList vb,
const UIntList ib,
const FloatList nb,
const FloatList cb,
const AABox bbox 
)
static

Convert buffer to triangle mesh.

参数
vbthe vertex buffer
ibthe index buffer
nbthe normal buffer
cbthe color buffer
bboxthe bounding box.
返回
the render able entity
static ScreenWidget AnyCAD::API::TopoShapeConvert::CreateCoordinateWidget ( )
static

Create the coordinate widget.

返回
the CoordinateWidget
static RenderableEntity AnyCAD::API::TopoShapeConvert::CreateEdgeEntity ( const FloatList vb,
const AABox bbox 
)
static

Convert buffer to edge.

参数
vbthe vertex buffer
bboxthe bounding box.
返回
the render able entity
static RenderableEntity AnyCAD::API::TopoShapeConvert::CreateFaceEntity ( const FloatList vb,
const UIntList ib,
const FloatList nb,
const FloatList texcb,
const AABox bbox 
)
static

Convert buffer to triangle mesh.

参数
vbthe vertex buffer
ibthe index buffer
nbthe normal buffer
texcbthe UV buffer
bboxthe bounding box.
返回
the render able entity
static RenderableEntity AnyCAD::API::TopoShapeConvert::CreatePointsCloud ( const FloatList buffer,
Real  pointSize 
)
static

Convert points to render able entity.

参数
bufferthe vertex buffer
pointSizethe per point size
返回
the render able entity
static Real AnyCAD::API::TopoShapeConvert::Deflection ( )
static

Get the global deflection for discretization edges.

返回
the deflection value.
static void AnyCAD::API::TopoShapeConvert::SetDeflection ( Real  val)
static

Set the global deflection for discretization edges.

参数
valthe deflection value.
static EntitySceneNode AnyCAD::API::TopoShapeConvert::ToEdgeNode ( const TopoShape pTopoShape,
Real  tolerance 
)
static

Convert edge to node

参数
pTopoShapethe TopoShape to convert
tolerancethe tolerance
返回
EntitySceneNode
static RenderableEntity AnyCAD::API::TopoShapeConvert::ToEntity ( const TopoShape pTopoShape,
Real  tolerance 
)
static

Convert TopoShape to Entity.

参数
pTopoShapethe TopoShape to convert
tolerancethe tolerance
返回
RenderableEntity
static EntitySceneNode AnyCAD::API::TopoShapeConvert::ToEntityNode ( const TopoShape pTopoShape,
Real  tolerance 
)
static

Convert TopoShape to node. If the TopoShape is very complex, please use ToScenenNode.

参数
pTopoShapethe TopoShape to convert
tolerancethe tolerance
返回
EntitySceneNode
static EntitySceneNode AnyCAD::API::TopoShapeConvert::ToFaceNode ( const TopoShape pTopoShape,
Real  tolerance 
)
static

Convert faces to node.

参数
pTopoShapethe TopoShape to convert
tolerancethe tolerance
返回
EntitySceneNode
static SceneNode AnyCAD::API::TopoShapeConvert::ToSceneNode ( const TopoShape topoShape,
Real  tolerance 
)
static

Convert TopoShape to node. Return GroupNode if the topoShape has sub shapes.

参数
topoShapethe TopoShape to convert
tolerancethe tolerance
返回
SceneNode, may be EntityScenenNode or GroupSceneNode.
static TopoShapeGroup AnyCAD::API::TopoShapeConvert::ToTopoShape ( const SceneNode sceneNode)
static

Extract TopoShapes from SceneNode. Return null if sceneNode is not type of EntitySceneNode.

参数
sceneNodethe EntitySceneNode.
返回
TopoShapeGroup.

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