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

静态 Public 成员函数

static BufferGeometry CreateGeometry (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 CreateBox (float widthX, float widthY, float heightZ, long widthSegments, long heightSegments, long depthSegments)
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ, long widthSegments, long heightSegments)
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ, long widthSegments)
 
static BufferGeometry CreateBox (float widthX, float widthY, float heightZ)
 
static BufferGeometry CreateSphere (float radius, long widthSegments, long heightSegments, float phiStart, float phiLength, float thetaStart, float thetaLength)
 
static BufferGeometry CreateSphere (float radius, long widthSegments, long heightSegments, float phiStart, float phiLength, float thetaStart)
 
static BufferGeometry CreateSphere (float radius, long widthSegments, long heightSegments, float phiStart, float phiLength)
 
static BufferGeometry CreateSphere (float radius, long widthSegments, long heightSegments, float phiStart)
 
static BufferGeometry CreateSphere (float radius, long widthSegments, long heightSegments)
 
static BufferGeometry CreateSphere (float radius, long widthSegments)
 
static BufferGeometry CreateSphere (float radius)
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, long radialSegments, long heightSegments, boolean openEnded, float thetaStart, float thetaLength)
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, long radialSegments, long heightSegments, boolean openEnded, float thetaStart)
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, long radialSegments, long heightSegments, boolean openEnded)
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, long radialSegments, long heightSegments)
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height, long radialSegments)
 
static BufferGeometry CreateCylinder (float radiusTop, float radiusBottom, float height)
 
static BufferGeometry CreatePlane (float width, float height, long widthSegments, long heightSegments)
 
static BufferGeometry CreatePlane (float width, float height, long 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 boolean UpdatePoint (BufferGeometry geometry, Vector3 pt)
 
static Vector3 ParsePoint (BufferGeometry geometry)
 
static BufferGeometry CreateLine (Vector3 start, Vector3 end)
 
static boolean UpdateLine (BufferGeometry line, Vector3 start, Vector3 end)
 
static BufferGeometry CreateRectangle ()
 
static BufferGeometry CreateUnitCircle ()
 
static BufferGeometry CreateArc (Vector3 center, Vector3 start, Vector3 end, float offset)
 
static BufferGeometry CreateBoxOutline (AABox box)
 
static BufferGeometry CreateFrustumOutline (Vec3List points)
 
static BufferGeometry CreateFrustumOutline (Double3List points)
 
static BufferGeometry CreateBoxOutline (float length)
 
static void UpdateBoxOutline (BufferGeometry shape, Vec3List points)
 
static void UpdateBoxOutline (BufferGeometry shape, Double3List points)
 
static boolean Transform (BufferGeometry pGeometry, Matrix4 trf)
 
static BufferGeometry CreateLineArrow (float height, float headHeight, float radius)
 
static CompoundShape CreateArrow (float heightHand, float heightHead, float radius, MaterialInstance material)
 
static BufferGeometry AtomCone ()
 
static BufferGeometry AtomBox ()
 
static BufferGeometry AtomBoxOutline ()
 
static BufferGeometry AtomCylinder ()
 
static BufferGeometry AtomSphere ()
 
static BufferGeometry AtomQuadShape ()
 
static BufferGeometry AtomPoint ()
 
static BufferGeometry AtomLine ()
 
static BufferGeometry AtomMLine ()
 
static BufferGeometry AtomCircle ()
 
static BufferGeometry AtomArc90 ()
 
static BufferGeometry AtomMCircle ()
 
static BufferGeometry AtomArrow ()
 
static BufferGeometry AtomRectangle ()
 
static CompoundShape UnitArrowTemplate ()
 
static PrimitiveShape AtomPointShape ()
 

详细描述

<> 创建显示用的几何对象

成员函数说明

◆ AtomArc90()

static BufferGeometry GeometryBuilder.AtomArc90 ( )
static

1/4圆弧,第一象限

返回
对象

◆ AtomArrow()

static BufferGeometry GeometryBuilder.AtomArrow ( )
static

单位箭头

返回
对象

◆ AtomBox()

static BufferGeometry GeometryBuilder.AtomBox ( )
static

单位的盒体

返回
对象

◆ AtomBoxOutline()

static BufferGeometry GeometryBuilder.AtomBoxOutline ( )
static

单位盒体的轮廓线

返回
对象

◆ AtomCircle()

static BufferGeometry GeometryBuilder.AtomCircle ( )
static

单位圆形

返回
对象

◆ AtomCone()

static BufferGeometry GeometryBuilder.AtomCone ( )
static

单位大小的圆锥

返回
对象

◆ AtomCylinder()

static BufferGeometry GeometryBuilder.AtomCylinder ( )
static

单位圆柱体

返回
对象

◆ AtomLine()

static BufferGeometry GeometryBuilder.AtomLine ( )
static

单位线(1,0,0)

返回
对象

◆ AtomMCircle()

static BufferGeometry GeometryBuilder.AtomMCircle ( )
static

单位虚线圆

返回
对象

◆ AtomMLine()

static BufferGeometry GeometryBuilder.AtomMLine ( )
static

单位虚线

返回
对象

◆ AtomPoint()

static BufferGeometry GeometryBuilder.AtomPoint ( )
static

点(0,0,0)

返回
对象

◆ AtomPointShape()

static PrimitiveShape GeometryBuilder.AtomPointShape ( )
static

单位点

返回
对象

◆ AtomQuadShape()

static BufferGeometry GeometryBuilder.AtomQuadShape ( )
static

单位矩形面

返回
对象

◆ AtomRectangle()

static BufferGeometry GeometryBuilder.AtomRectangle ( )
static

单位矩形

返回
对象

◆ AtomSphere()

static BufferGeometry GeometryBuilder.AtomSphere ( )
static

单位球体

返回
对象

◆ CreateArc()

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

创建圆弧

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

◆ CreateArrow()

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

创建实体箭头

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

◆ CreateBox() [1/4]

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

创建盒体

参数
widthXX方向宽度
widthYY方向宽度
heightZZ方向高度



返回
对象

◆ CreateBox() [2/4]

static BufferGeometry GeometryBuilder.CreateBox ( float  widthX,
float  widthY,
float  heightZ,
long  widthSegments 
)
static

创建盒体

参数
widthXX方向宽度
widthYY方向宽度
heightZZ方向高度
widthSegmentsX切分的份数


返回
对象

◆ CreateBox() [3/4]

static BufferGeometry GeometryBuilder.CreateBox ( float  widthX,
float  widthY,
float  heightZ,
long  widthSegments,
long  heightSegments 
)
static

创建盒体

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

返回
对象

◆ CreateBox() [4/4]

static BufferGeometry GeometryBuilder.CreateBox ( float  widthX,
float  widthY,
float  heightZ,
long  widthSegments,
long  heightSegments,
long  depthSegments 
)
static

创建盒体

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

◆ CreateBoxOutline() [1/2]

static BufferGeometry GeometryBuilder.CreateBoxOutline ( AABox  box)
static

创建包围盒轮廓线对象

参数
box包围盒
返回
对象

◆ CreateBoxOutline() [2/2]

static BufferGeometry GeometryBuilder.CreateBoxOutline ( float  length)
static

创建盒子的轮廓线

参数
length长度
返回
对象

◆ CreateCylinder() [1/6]

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

创建圆柱体、圆台体

参数
radiusTop顶部半径
radiusBottom顶部半径
height高度





返回
对象

◆ CreateCylinder() [2/6]

static BufferGeometry GeometryBuilder.CreateCylinder ( float  radiusTop,
float  radiusBottom,
float  height,
long  radialSegments 
)
static

创建圆柱体、圆台体

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




返回
对象

◆ CreateCylinder() [3/6]

static BufferGeometry GeometryBuilder.CreateCylinder ( float  radiusTop,
float  radiusBottom,
float  height,
long  radialSegments,
long  heightSegments 
)
static

创建圆柱体、圆台体

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



返回
对象

◆ CreateCylinder() [4/6]

static BufferGeometry GeometryBuilder.CreateCylinder ( float  radiusTop,
float  radiusBottom,
float  height,
long  radialSegments,
long  heightSegments,
boolean  openEnded 
)
static

创建圆柱体、圆台体

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


返回
对象

◆ CreateCylinder() [5/6]

static BufferGeometry GeometryBuilder.CreateCylinder ( float  radiusTop,
float  radiusBottom,
float  height,
long  radialSegments,
long  heightSegments,
boolean  openEnded,
float  thetaStart 
)
static

创建圆柱体、圆台体

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

返回
对象

◆ CreateCylinder() [6/6]

static BufferGeometry GeometryBuilder.CreateCylinder ( float  radiusTop,
float  radiusBottom,
float  height,
long  radialSegments,
long  heightSegments,
boolean  openEnded,
float  thetaStart,
float  thetaLength 
)
static

创建圆柱体、圆台体

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

◆ CreateFrustumOutline()

static BufferGeometry GeometryBuilder.CreateFrustumOutline ( Vec3List  points)
static

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

◆ CreateGeometry() [1/2]

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

创建通用的几何对象

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

◆ CreateGeometry() [2/2]

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

创建通用的几何对象

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

◆ CreateLine()

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

创建线段

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

◆ CreateLineArrow()

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

创建线框箭头 Z方向

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

◆ CreateLines()

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

创建线段

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

◆ CreatePlane() [1/3]

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

创建平面

参数
width宽度
height高度


返回
对象

◆ CreatePlane() [2/3]

static BufferGeometry GeometryBuilder.CreatePlane ( float  width,
float  height,
long  widthSegments 
)
static

创建平面

参数
width宽度
height高度
widthSegmentsX方向分割份数

返回
对象

◆ CreatePlane() [3/3]

static BufferGeometry GeometryBuilder.CreatePlane ( float  width,
float  height,
long  widthSegments,
long  heightSegments 
)
static

创建平面

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

◆ CreatePoint()

static BufferGeometry GeometryBuilder.CreatePoint ( Vector3  position)
static

创建点

参数
position位置
返回
对象

◆ CreatePoints()

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

创建点的集合

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

◆ CreateRectangle()

static BufferGeometry GeometryBuilder.CreateRectangle ( )
static

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

返回
对象

◆ CreateSphere() [1/7]

static BufferGeometry GeometryBuilder.CreateSphere ( float  radius)
static

创建球体、半球体

参数
radius半径






返回
对象

◆ CreateSphere() [2/7]

static BufferGeometry GeometryBuilder.CreateSphere ( float  radius,
long  widthSegments 
)
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数





返回
对象

◆ CreateSphere() [3/7]

static BufferGeometry GeometryBuilder.CreateSphere ( float  radius,
long  widthSegments,
long  heightSegments 
)
static

创建球体、半球体

参数
radius半径
widthSegments经度方向的份数
heightSegments维度方向的份数




返回
对象

◆ CreateSphere() [4/7]

static BufferGeometry GeometryBuilder.CreateSphere ( float  radius,
long  widthSegments,
long  heightSegments,
float  phiStart 
)
static

创建球体、半球体

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



返回
对象

◆ CreateSphere() [5/7]

static BufferGeometry GeometryBuilder.CreateSphere ( float  radius,
long  widthSegments,
long  heightSegments,
float  phiStart,
float  phiLength 
)
static

创建球体、半球体

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


返回
对象

◆ CreateSphere() [6/7]

static BufferGeometry GeometryBuilder.CreateSphere ( float  radius,
long  widthSegments,
long  heightSegments,
float  phiStart,
float  phiLength,
float  thetaStart 
)
static

创建球体、半球体

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

返回
对象

◆ CreateSphere() [7/7]

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

创建球体、半球体

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

◆ CreateUnitCircle()

static BufferGeometry GeometryBuilder.CreateUnitCircle ( )
static

创建单位大小的圆

返回
对象

◆ ParsePoint()

static Vector3 GeometryBuilder.ParsePoint ( BufferGeometry  geometry)
static

获取点

参数
geometry几何对象
返回
位置

◆ Transform()

static boolean GeometryBuilder.Transform ( BufferGeometry  pGeometry,
Matrix4  trf 
)
static

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

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

◆ UnitArrowTemplate()

static CompoundShape GeometryBuilder.UnitArrowTemplate ( )
static

单位的实体箭头

返回
对象

◆ UpdateBoxOutline()

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

更新盒子轮廓线

参数
shape
points

◆ UpdateLine()

static boolean GeometryBuilder.UpdateLine ( BufferGeometry  line,
Vector3  start,
Vector3  end 
)
static

更新线的坐标

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

◆ UpdatePoint()

static boolean GeometryBuilder.UpdatePoint ( BufferGeometry  geometry,
Vector3  pt 
)
static

更新点对象

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