AnyCAD Rapid API 2025
Help you to create a better world!
|
Public 成员函数 | |
BrepSceneNode (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial, double deflection, boolean optimized) | |
BrepSceneNode (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial, double deflection) | |
BrepSceneNode (GRepShape shape) | |
GRepShape | GetShape () |
void | SetSubShapePickable (boolean pickable) |
boolean | GetSubShapePickable () |
void | SetDisplayFilter (EnumShapeFilter filter) |
EnumShapeFilter | GetDisplayFilter () |
TopoShape | GetFinalShape () |
TopoShape | GetTopoShape () |
void | SetTopoShape (TopoShape shape) |
void | SetShape (GRepShape shape) |
long | GetFaceCount () |
void | SetFaceVisible (long idx, boolean visible) |
boolean | GetFaceVisible (long idx) |
void | SetFaceMaterial (long idx, MaterialInstance material) |
void | SetFaceMaterialByIndex (long idx, MaterialInstance material) |
void | SetFaceMaterial (MaterialInstance material) |
void | SetFaceMaterialByAll (MaterialInstance material) |
void | SetFaceColor (long idx, Vector3 color) |
Vector3 | GetFaceColor (long idx) |
void | ClearFaceColor () |
void | SetColor (Vector3 color) |
Vector3 | GetColor () |
long | GetEdgeCount () |
void | SetEdgeVisible (long idx, boolean visible) |
boolean | GetEdgeVisible (long idx) |
void | SetEdgeMaterial (long idx, MaterialInstance material) |
void | SetEdgeMaterialByIndex (long idx, MaterialInstance material) |
void | SetEdgeMaterial (MaterialInstance material) |
void | SetEdgeMaterialByAll (MaterialInstance material) |
void | SetEdgeColor (long idx, Vector3 color) |
Vector3 | GetEdgeColor (long idx) |
void | ClearEdgeColor () |
void | SetLineWidth (short lineWidth) |
short | GetLineWidth () |
void | ReComputeBoundingBox () |
SceneNode | Clone () |
![]() | |
boolean | IsDocumentNode () |
![]() | |
String | GetName () |
void | SetName (String val) |
java.math.BigInteger | GetUserId () |
void | SetUserId (java.math.BigInteger val) |
java.math.BigInteger | GetParentId () |
void | SetParentId (java.math.BigInteger val) |
Matrix4d | GetTransform () |
AABox | GetBoundingBox () |
void | SetBoundingBox (AABox val) |
Matrix4d | GetWorldTransform () |
AABox | GetWorldBBox () |
long | GetState () |
SceneNode | GetParent () |
void | SetParent (SceneNode val) |
float | GetPickOrder () |
void | SetPickOrder (float val) |
long | GetUpdateVersion () |
void | SetUpdateVersion (long val) |
MaterialInstance | GetOverrideFaceMaterial () |
void | SetOverrideFaceMaterial (MaterialInstance val) |
MaterialInstance | GetOverrideEdgeMaterial () |
void | SetOverrideEdgeMaterial (MaterialInstance val) |
boolean | GetCastShadow () |
void | SetCastShadow (boolean bEnabled) |
boolean | GetPickable () |
void | SetPickable (boolean bEnabled) |
boolean | GetPickByBox () |
void | SetPickByBox (boolean bEnabled) |
boolean | GetCulling () |
void | SetCulling (boolean bEnabled) |
boolean | GetVisible () |
void | SetVisible (boolean bEnabled) |
boolean | GetChildrenPickable () |
void | SetChildrenPickable (boolean bEnabled) |
boolean | GetContainer () |
void | SetContainer (boolean bEnabled) |
boolean | GetFixedSize () |
void | SetFixedSize (boolean bEnabled) |
void | SetFixedSizeByShader (boolean bEnabled) |
boolean | GetFixedSizeByShader () |
boolean | GetInfiniteSize () |
void | SetInfiniteSize (boolean bEnabled) |
boolean | GetPhysics () |
void | SetPhysics (boolean bEnabled) |
void | SetTransform (Matrix4d trf) |
SceneNode | GetRootNode () |
void | RequestUpdate () |
void | AddTransform (Matrix4d trf) |
void | SetWorldTransform (Matrix4d world) |
void | UpdateTransform (Matrix4d parent) |
AABox | ComputeBoundingBox (Matrix4d parent) |
boolean | IsVisiblePath () |
![]() | |
long | GetUuid () |
静态 Public 成员函数 | |
static BrepSceneNode | Cast (GfxObject obj) |
static BrepSceneNode | Create (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial, double deflection, boolean optimized) |
static BrepSceneNode | Create (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial, double deflection) |
static BrepSceneNode | Create (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial) |
static BrepSceneNode | Create (TopoShape shape, double deflection, boolean optimized) |
static BrepSceneNode | Create (TopoShape shape, double deflection) |
static BrepSceneNode | Create (TopoShape shape) |
static BrepSceneNode | AddNode (Scene scene, TopoShape shape, double deflection, boolean optimized) |
<> 在场景中可以显示TopoShape的节点。
通过BrepSceneNode.SetTransform设置的矩阵不会直接应用到TopoShape上。
使用BrepSceneNode.GetFinalShape()可以得到空间变换后的几何对象。
BrepSceneNode.BrepSceneNode | ( | TopoShape | shape, |
MaterialInstance | faceMaterial, | ||
MaterialInstance | edgeMaterial, | ||
double | deflection, | ||
boolean | optimized ) |
构造。使用BrepSceneNode.Create构造,不建议直接使用构造函数。
shape | 几何 |
faceMaterial | 面材质 |
edgeMaterial | 边材质 |
deflection | 精度 |
optimized | 是否对模型优化显示 |
BrepSceneNode.BrepSceneNode | ( | TopoShape | shape, |
MaterialInstance | faceMaterial, | ||
MaterialInstance | edgeMaterial, | ||
double | deflection ) |
构造。使用BrepSceneNode.Create构造,不建议直接使用构造函数。
shape | 几何 |
faceMaterial | 面材质 |
edgeMaterial | 边材质 |
deflection | 精度 |
|
static |
重载 GeneralSceneNode .
|
static |
创建对象
shape | TopoShape对象 |
|
static |
创建对象
shape | TopoShape对象 |
deflection | 精度 |
|
static |
创建对象
shape | TopoShape对象 |
deflection | 精度 |
optimized | 是否优化 |
|
static |
创建对象
shape | TopoShape对象 |
faceMaterial | 面材质,可以为null |
edgeMaterial | 边材质,可以为null |
|
static |
创建对象
shape | TopoShape对象 |
faceMaterial | 面材质,可以为null |
edgeMaterial | 边材质,可以为null |
deflection | 精度 |
|
static |
创建对象
shape | TopoShape对象 |
faceMaterial | 面材质,可以为null |
edgeMaterial | 边材质,可以为null |
deflection | 精度 |
optimized | 是否优化 |
EnumShapeFilter BrepSceneNode.GetDisplayFilter | ( | ) |
得到显示过滤器
long BrepSceneNode.GetEdgeCount | ( | ) |
获取边的个数
boolean BrepSceneNode.GetEdgeVisible | ( | long | idx | ) |
判断边是否可见
idx | 边的索引 |
long BrepSceneNode.GetFaceCount | ( | ) |
设置面的个数
boolean BrepSceneNode.GetFaceVisible | ( | long | idx | ) |
判断面是否可见
idx | 面的索引 |
TopoShape BrepSceneNode.GetFinalShape | ( | ) |
获取最终变换后的几何对象
TopoShape BrepSceneNode.GetTopoShape | ( | ) |
获取局部的几何对象
void BrepSceneNode.ReComputeBoundingBox | ( | ) |
重新计算包围盒
void BrepSceneNode.SetColor | ( | Vector3 | color | ) |
全部覆盖
color |
void BrepSceneNode.SetDisplayFilter | ( | EnumShapeFilter | filter | ) |
设置显示过滤器
filter | 过滤器 |
void BrepSceneNode.SetEdgeColor | ( | long | idx, |
Vector3 | color ) |
设置边颜色
idx | |
color |
void BrepSceneNode.SetEdgeMaterial | ( | long | idx, |
MaterialInstance | material ) |
设置边的材质
idx | 索引 |
material | 材质 |
void BrepSceneNode.SetEdgeMaterial | ( | MaterialInstance | material | ) |
设置边材质
material | 材质 |
void BrepSceneNode.SetEdgeVisible | ( | long | idx, |
boolean | visible ) |
设置某个边的可见性
idx | 边的索引 |
visible | 是否可见 |
void BrepSceneNode.SetFaceColor | ( | long | idx, |
Vector3 | color ) |
设置指定面的颜色
idx | 面的索引 |
color | 颜色 |
void BrepSceneNode.SetFaceMaterial | ( | long | idx, |
MaterialInstance | material ) |
设置指定面的材质
idx | 面的索引 |
material | 材质 |
void BrepSceneNode.SetFaceMaterial | ( | MaterialInstance | material | ) |
设置整体的面材质
material | 材质 |
void BrepSceneNode.SetFaceVisible | ( | long | idx, |
boolean | visible ) |
设置某个面的可见性
idx | 面的索引 |
visible | 是否可见 |
void BrepSceneNode.SetShape | ( | GRepShape | shape | ) |
设置离散面片对象
shape | 离散对象 |
void BrepSceneNode.SetTopoShape | ( | TopoShape | shape | ) |
重新设置拓扑几何对象
shape |