AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.GeometryBuilder类 参考

创建显示用的几何对象 更多...

类 AnyCAD.Foundation.GeometryBuilder 继承关系图:

Public 成员函数

 GeometryBuilder (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 

静态 Public 成员函数

static BufferGeometry CreateGeometry (EnumPrimitiveType type, Float32Array vb, Float32Array nb, Float32Array uv, Uint32Array ib)
 创建通用的几何对象
 
static BufferGeometry CreateGeometryByArray (EnumPrimitiveType type, Float32Array vb, Float32Array nb, Float32Array uv, Uint32Array ib)
 
static BufferGeometry CreateGeometry (EnumPrimitiveType type, Float32Buffer vb, Float32Buffer nb, Float32Buffer uv, Uint32Buffer ib)
 创建通用的几何对象
 
static BufferGeometry CreateGeometryByBuffer (EnumPrimitiveType type, Float32Buffer vb, Float32Buffer nb, Float32Buffer uv, Uint32Buffer ib)
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ, uint widthSegments, uint heightSegments, uint depthSegments)
 创建盒体
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ, uint widthSegments, uint heightSegments)
 创建盒体
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ, uint widthSegments)
 创建盒体
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ)
 创建盒体
 
static BufferGeometry CreateSphere (float radius, uint widthSegments, uint heightSegments, float phiStart, float phiLength, float thetaStart, float thetaLength)
 创建球体、半球体
 
static BufferGeometry CreateSphere (float radius, uint widthSegments, uint heightSegments, float phiStart, float phiLength, float thetaStart)
 创建球体、半球体
 
static BufferGeometry CreateSphere (float radius, uint widthSegments, uint heightSegments, float phiStart, float phiLength)
 创建球体、半球体
 
static BufferGeometry CreateSphere (float radius, uint widthSegments, uint heightSegments, float phiStart)
 创建球体、半球体
 
static BufferGeometry CreateSphere (float radius, uint widthSegments, uint heightSegments)
 创建球体、半球体
 
static BufferGeometry CreateSphere (float radius, uint widthSegments)
 创建球体、半球体
 
static BufferGeometry CreateSphere (float radius)
 创建球体、半球体
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, uint radialSegments, uint heightSegments, bool openEnded, float thetaStart, float thetaLength)
 创建圆柱体、圆台体
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, uint radialSegments, uint heightSegments, bool openEnded, float thetaStart)
 创建圆柱体、圆台体
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, uint radialSegments, uint heightSegments, bool openEnded)
 创建圆柱体、圆台体
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, uint radialSegments, uint heightSegments)
 创建圆柱体、圆台体
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, uint radialSegments)
 创建圆柱体、圆台体
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height)
 创建圆柱体、圆台体
 
static BufferGeometry CreatePlane (float width, float height, uint widthSegments, uint heightSegments)
 创建平面
 
static BufferGeometry CreatePlane (float width, float height, uint widthSegments)
 创建平面
 
static BufferGeometry CreatePlane (float width, float height)
 创建平面
 
static BufferGeometry CreatePoints (Float32Array positions, Float32Array color3, Float32Array normals)
 创建点的集合
 
static BufferGeometry CreateLines (Float32Array positions, Uint32Array ib, Float32Array color3)
 创建线段
 
static BufferGeometry CreatePoint (Vector3 position)
 创建点
 
static bool UpdatePoint (BufferGeometry geometry, Vector3 pt)
 更新点对象
 
static Vector3 ParsePoint (BufferGeometry geometry)
 获取点
 
static BufferGeometry CreateLine (Vector3 start, Vector3 end)
 创建线段
 
static bool UpdateLine (BufferGeometry line, Vector3 start, Vector3 end)
 更新线的坐标
 
static BufferGeometry CreateRectangle (bool asMesh)
 创建1 x 1单位大小的矩形
 
static BufferGeometry CreateRectangle ()
 创建1 x 1单位大小的矩形
 
static BufferGeometry CreateUnitCircle ()
 创建单位大小的圆
 
static BufferGeometry CreateArc (Vector3 center, Vector3 start, Vector3 end, float offset, Vector3 normal)
 创建圆弧
 
static BufferGeometry CreateArc (Vector3 center, Vector3 start, Vector3 end, float offset)
 创建圆弧
 
static BufferGeometry CreateBoxOutline (AABox box)
 创建包围盒轮廓线对象
 
static BufferGeometry CreateFrustumOutline (Vec3List points)
 
static BufferGeometry CreateFrustumOutlineD (Double3List points)
 
static BufferGeometry CreateBoxOutline (float length)
 创建盒体的轮廓线
 
static void UpdateBoxOutline (BufferGeometry shape, Vec3List points)
 更新盒体轮廓线
 
static void UpdateBoxOutlineD (BufferGeometry shape, Double3List points)
 
static bool Transform (BufferGeometry pGeometry, Matrix4 trf)
 根据矩阵更新对象的顶点位置
 
static BufferGeometry CreateLineArrow (float height, float headHeight, float radius)
 创建线框箭头 Z方向
 
static CompoundShape CreateArrow (float heightHand, float heightHead, float radius, MaterialInstance material)
 创建实体箭头
 
static BufferGeometry CreateUnitTriangle (bool asMesh)
 创建XOY平面上以底边中点为基点,底边长度和高度为1的单位三角形
 
static BufferGeometry CreateUnitTriangle ()
 创建XOY平面上以底边中点为基点,底边长度和高度为1的单位三角形
 
static BufferGeometry AtomCone ()
 单位大小的圆锥
 
static BufferGeometry AtomBox ()
 单位的盒体
 
static BufferGeometry AtomBoxOutline ()
 单位盒体的轮廓线
 
static BufferGeometry AtomCylinder ()
 单位圆柱体
 
static BufferGeometry AtomSphere ()
 单位球体
 
static BufferGeometry AtomQuadShape ()
 单位矩形面
 
static BufferGeometry AtomPoint ()
 点(0,0,0)
 
static BufferGeometry AtomLine ()
 单位线(1,0,0)
 
static BufferGeometry AtomMLine ()
 单位虚线
 
static BufferGeometry AtomCircle ()
 单位圆形
 
static BufferGeometry AtomArc90 ()
 1/4圆弧,第一象限
 
static BufferGeometry AtomMCircle ()
 单位虚线圆
 
static BufferGeometry AtomArrow ()
 单位箭头
 
static BufferGeometry AtomArrowHead ()
 
static BufferGeometry AtomRectangle (bool asMesh)
 单位矩形
 
static BufferGeometry AtomRectangle ()
 单位矩形
 
static BufferGeometry AtomLinesL ()
 
static BufferGeometry AtomTriangle (bool asMesh)
 单位三角形,以底边中点为基点,底边长度和高度为1的等腰三角形
 
static BufferGeometry AtomTriangle ()
 单位三角形,以底边中点为基点,底边长度和高度为1的等腰三角形
 
static CompoundShape UnitArrowTemplate ()
 单位的实体箭头
 
static PrimitiveShape AtomPointShape ()
 单位点
 
static PrimitiveShape UnitBoundingBoxShape ()
 

详细描述

创建显示用的几何对象

Group: Rendering

成员函数说明

◆ AtomArc90()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomArc90 ( )
static

1/4圆弧,第一象限

返回
对象

◆ AtomArrow()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomArrow ( )
static

单位箭头

返回
对象

◆ AtomBox()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomBox ( )
static

单位的盒体

返回
对象

◆ AtomBoxOutline()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomBoxOutline ( )
static

单位盒体的轮廓线

返回
对象

◆ AtomCircle()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomCircle ( )
static

单位圆形

返回
对象

◆ AtomCone()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomCone ( )
static

单位大小的圆锥

返回
对象

◆ AtomCylinder()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomCylinder ( )
static

单位圆柱体

返回
对象

◆ AtomLine()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomLine ( )
static

单位线(1,0,0)

返回
对象

◆ AtomMCircle()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomMCircle ( )
static

单位虚线圆

返回
对象

◆ AtomMLine()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomMLine ( )
static

单位虚线

返回
对象

◆ AtomPoint()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomPoint ( )
static

点(0,0,0)

返回
对象

◆ AtomPointShape()

static PrimitiveShape AnyCAD.Foundation.GeometryBuilder.AtomPointShape ( )
static

单位点

返回
对象

◆ AtomQuadShape()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomQuadShape ( )
static

单位矩形面

返回
对象

◆ AtomRectangle() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomRectangle ( )
static

单位矩形

返回
对象

◆ AtomRectangle() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomRectangle ( bool asMesh)
static

单位矩形

返回
对象

◆ AtomSphere()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomSphere ( )
static

单位球体

返回
对象

◆ AtomTriangle() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomTriangle ( )
static

单位三角形,以底边中点为基点,底边长度和高度为1的等腰三角形

返回
对象

◆ AtomTriangle() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.AtomTriangle ( bool asMesh)
static

单位三角形,以底边中点为基点,底边长度和高度为1的等腰三角形

参数
asMesh是否以面创建,默认false
返回
对象

◆ CreateArc() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateArc ( Vector3 center,
Vector3 start,
Vector3 end,
float offset )
static

创建圆弧

参数
center中心点
start起始点
end终止点
offset终点偏移长度
返回
对象

◆ CreateArc() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateArc ( Vector3 center,
Vector3 start,
Vector3 end,
float offset,
Vector3 normal )
static

创建圆弧

参数
center中心点
start起始点
end终止点
offset终点偏移长度
normal圆弧法向(从起点绕法向逆时针到终点构造圆弧)
返回
对象

◆ CreateArrow()

static CompoundShape AnyCAD.Foundation.GeometryBuilder.CreateArrow ( float heightHand,
float heightHead,
float radius,
MaterialInstance material )
static

创建实体箭头

参数
heightHand柄的高度
heightHead头的高度
radius半径
material材质
返回
对象

◆ CreateBox() [1/4]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateBox ( float widthX,
float widthY,
float heightZ )
static

创建盒体

参数
widthXX方向宽度
widthYY方向宽度
heightZZ方向高度
返回
对象

◆ CreateBox() [2/4]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateBox ( float widthX,
float widthY,
float heightZ,
uint widthSegments )
static

创建盒体

参数
widthXX方向宽度
widthYY方向宽度
heightZZ方向高度
widthSegmentsX切分的份数
返回
对象

◆ CreateBox() [3/4]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateBox ( float widthX,
float widthY,
float heightZ,
uint widthSegments,
uint heightSegments )
static

创建盒体

参数
widthXX方向宽度
widthYY方向宽度
heightZZ方向高度
widthSegmentsX切分的份数
heightSegmentsY切分的份数
返回
对象

◆ CreateBox() [4/4]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateBox ( float widthX,
float widthY,
float heightZ,
uint widthSegments,
uint heightSegments,
uint depthSegments )
static

创建盒体

参数
widthXX方向宽度
widthYY方向宽度
heightZZ方向高度
widthSegmentsX切分的份数
heightSegmentsY切分的份数
depthSegmentsZ切分的份数
返回
对象

◆ CreateBoxOutline() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateBoxOutline ( AABox box)
static

创建包围盒轮廓线对象

参数
box包围盒
返回
对象

◆ CreateBoxOutline() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateBoxOutline ( float length)
static

创建盒体的轮廓线

参数
length长度
返回
对象

◆ CreateCylinder() [1/6]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateCylinder ( float radiusTop,
float radiusBottom,
float height )
static

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度
返回
对象

◆ CreateCylinder() [2/6]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateCylinder ( float radiusTop,
float radiusBottom,
float height,
uint radialSegments )
static

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度
radialSegments圆的分割份数
返回
对象

◆ CreateCylinder() [3/6]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateCylinder ( float radiusTop,
float radiusBottom,
float height,
uint radialSegments,
uint heightSegments )
static

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度
radialSegments圆的分割份数
heightSegments高度分割份数
返回
对象

◆ CreateCylinder() [4/6]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateCylinder ( float radiusTop,
float radiusBottom,
float height,
uint radialSegments,
uint heightSegments,
bool openEnded )
static

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度
radialSegments圆的分割份数
heightSegments高度分割份数
openEnded端部是否封闭
返回
对象

◆ CreateCylinder() [5/6]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateCylinder ( float radiusTop,
float radiusBottom,
float height,
uint radialSegments,
uint heightSegments,
bool openEnded,
float thetaStart )
static

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度
radialSegments圆的分割份数
heightSegments高度分割份数
openEnded端部是否封闭
thetaStart起始角度
返回
对象

◆ CreateCylinder() [6/6]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateCylinder ( float radiusTop,
float radiusBottom,
float height,
uint radialSegments,
uint heightSegments,
bool openEnded,
float thetaStart,
float thetaLength )
static

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度
radialSegments圆的分割份数
heightSegments高度分割份数
openEnded端部是否封闭
thetaStart起始角度
thetaLength角度大小
返回
对象

◆ CreateFrustumOutline()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateFrustumOutline ( Vec3List points)
static

根据8个点创建轮廓线 4 ----------—5 | / | | / | 0 ------— 1 | | | 6------—|–7 | / | / | / |/ 2----------—3

◆ CreateGeometry() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateGeometry ( EnumPrimitiveType type,
Float32Array vb,
Float32Array nb,
Float32Array uv,
Uint32Array ib )
static

创建通用的几何对象

参数
type类型
vb位置数组
nb法向数组
uv纹理坐标数组
ib索引数组
返回
对象

◆ CreateGeometry() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateGeometry ( EnumPrimitiveType type,
Float32Buffer vb,
Float32Buffer nb,
Float32Buffer uv,
Uint32Buffer ib )
static

创建通用的几何对象

参数
type类型
vb位置数组
nb法向数组
uv纹理坐标数组
ib索引数组
返回
对象

◆ CreateLine()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateLine ( Vector3 start,
Vector3 end )
static

创建线段

参数
start起始点
end终止点
返回
对象

◆ CreateLineArrow()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateLineArrow ( float height,
float headHeight,
float radius )
static

创建线框箭头 Z方向

参数
height柄的高度
headHeight头的高度
radius半径
返回
对象

◆ CreateLines()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateLines ( Float32Array positions,
Uint32Array ib,
Float32Array color3 )
static

创建线段

参数
positions顶点数组
ib组成边的顶点索引
color3颜色
返回

◆ CreatePlane() [1/3]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreatePlane ( float width,
float height )
static

创建平面

参数
width宽度
height高度
返回
对象

◆ CreatePlane() [2/3]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreatePlane ( float width,
float height,
uint widthSegments )
static

创建平面

参数
width宽度
height高度
widthSegmentsX方向分割份数
返回
对象

◆ CreatePlane() [3/3]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreatePlane ( float width,
float height,
uint widthSegments,
uint heightSegments )
static

创建平面

参数
width宽度
height高度
widthSegmentsX方向分割份数
heightSegmentsY方向风格份数
返回
对象

◆ CreatePoint()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreatePoint ( Vector3 position)
static

创建点

参数
position位置
返回
对象

◆ CreatePoints()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreatePoints ( Float32Array positions,
Float32Array color3,
Float32Array normals )
static

创建点的集合

参数
positions点的数组
color3点的颜色,可为null
normals点法向,可为null
返回
对象

◆ CreateRectangle() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateRectangle ( )
static

创建1 x 1单位大小的矩形

返回
对象

◆ CreateRectangle() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateRectangle ( bool asMesh)
static

创建1 x 1单位大小的矩形

参数
asMesh是否创建为mesh,默认为线框
返回
对象

◆ CreateSphere() [1/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius)
static

创建球体、半球体

参数
radius半径
返回
对象

◆ CreateSphere() [2/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius,
uint widthSegments )
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
返回
对象

◆ CreateSphere() [3/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius,
uint widthSegments,
uint heightSegments )
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
heightSegments维度方向的份数
返回
对象

◆ CreateSphere() [4/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius,
uint widthSegments,
uint heightSegments,
float phiStart )
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
heightSegments维度方向的份数
phiStart经度方向起始角度
返回
对象

◆ CreateSphere() [5/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius,
uint widthSegments,
uint heightSegments,
float phiStart,
float phiLength )
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
heightSegments维度方向的份数
phiStart经度方向起始角度
phiLength角度大小
返回
对象

◆ CreateSphere() [6/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius,
uint widthSegments,
uint heightSegments,
float phiStart,
float phiLength,
float thetaStart )
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
heightSegments维度方向的份数
phiStart经度方向起始角度
phiLength角度大小
thetaStart维度方向起始角度
返回
对象

◆ CreateSphere() [7/7]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateSphere ( float radius,
uint widthSegments,
uint heightSegments,
float phiStart,
float phiLength,
float thetaStart,
float thetaLength )
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
heightSegments维度方向的份数
phiStart经度方向起始角度
phiLength角度大小
thetaStart维度方向起始角度
thetaLength角度大小
返回
对象

◆ CreateUnitCircle()

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateUnitCircle ( )
static

创建单位大小的圆

返回
对象

◆ CreateUnitTriangle() [1/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateUnitTriangle ( )
static

创建XOY平面上以底边中点为基点,底边长度和高度为1的单位三角形

返回
对象

◆ CreateUnitTriangle() [2/2]

static BufferGeometry AnyCAD.Foundation.GeometryBuilder.CreateUnitTriangle ( bool asMesh)
static

创建XOY平面上以底边中点为基点,底边长度和高度为1的单位三角形

参数
asMesh是否以面创建,默认false
返回
对象

◆ ParsePoint()

static Vector3 AnyCAD.Foundation.GeometryBuilder.ParsePoint ( BufferGeometry geometry)
static

获取点

参数
geometry几何对象
返回
位置

◆ Transform()

static bool AnyCAD.Foundation.GeometryBuilder.Transform ( BufferGeometry pGeometry,
Matrix4 trf )
static

根据矩阵更新对象的顶点位置

参数
pGeometry对象
trf矩阵
返回
是否成功

◆ UnitArrowTemplate()

static CompoundShape AnyCAD.Foundation.GeometryBuilder.UnitArrowTemplate ( )
static

单位的实体箭头

返回
对象

◆ UpdateBoxOutline()

static void AnyCAD.Foundation.GeometryBuilder.UpdateBoxOutline ( BufferGeometry shape,
Vec3List points )
static

更新盒体轮廓线

参数
shape
points

◆ UpdateLine()

static bool AnyCAD.Foundation.GeometryBuilder.UpdateLine ( BufferGeometry line,
Vector3 start,
Vector3 end )
static

更新线的坐标

参数
line线对象
start起点
end终点
返回
是否成功

◆ UpdatePoint()

static bool AnyCAD.Foundation.GeometryBuilder.UpdatePoint ( BufferGeometry geometry,
Vector3 pt )
static

更新点对象

参数
geometry对象
pt位置
返回
是否成功