External module primitive
Variables
Const c00
c00
: Vec3 = new Vec3(0, 0, 0)
Const c01
c01
: Vec3 = new Vec3(0, 0, 0)
Const c10
c10
: Vec3 = new Vec3(0, 0, 0)
Const r
r
: Vec3 = new Vec3(0, 0, 0)
Const temp1
temp1
: Vec3 = new Vec3(0, 0, 0)
Const temp1
temp1
: Vec3 = new Vec3(0, 0, 0)
Const temp1
temp1
: Vec3 = new Vec3(0, 0, 0)
Const temp2
temp2
: Vec3 = new Vec3(0, 0, 0)
Const temp2
temp2
: Vec3 = new Vec3(0, 0, 0)
Const temp2
temp2
: Vec3 = new Vec3(0, 0, 0)
Const temp3
temp3
: Vec3 = new Vec3(0, 0, 0)
Functions
applyDefaultCircleOptions
applyDefaultGeometryOptions
- applyDefaultGeometryOptions<GeometryOptions>(options?: RecursivePartial<IGeometryOptions>): GeometryOptions
-
Type parameters
Parameters
Returns GeometryOptions
default
-
Parameters
-
Default value radius: number = 0.5
-
Default value opts: RecursivePartial<ISphereOptions> = {}
default
- default(radius?: number, tube?: number, opts?: RecursivePartial<ITorusOptions>): object
-
Parameters
-
Default value radius: number = 0.4
-
Default value tube: number = 0.1
-
Default value opts: RecursivePartial<ITorusOptions> = {}
Returns object
-
boundingRadius: number
-
indices: number[]
-
-
-
normals: number[]
-
positions: number[]
-
uvs: number[]
default
-
Parameters
-
Default value radiusTop: number = 0.5
-
Default value radiusBottom: number = 0.5
-
Default value height: number = 2
-
Default value opts: RecursivePartial<ICylinderOptions> = {}
default
- default(radiusTop?: number, radiusBottom?: number, height?: number, opts?: RecursivePartial<ICapsuteOptions>): object
-
Parameters
-
Default value radiusTop: number = 0.5
-
Default value radiusBottom: number = 0.5
-
Default value height: number = 2
-
Default value opts: RecursivePartial<ICapsuteOptions> = {}
Returns object
-
boundingRadius: number
-
indices: number[]
-
-
-
normals: number[]
-
positions: number[]
-
uvs: number[]
default
-
Parameters
-
Default value radius: number = 0.5
-
Default value height: number = 1
-
Default value opts: RecursivePartial<IConeOptions> = {}
invWinding
- invWinding(indices: number[]): number[]
-
Parameters
Returns number[]
normals
- normals(positions: number[], nms: number[], length?: number): any[]
-
Parameters
-
positions: number[]
-
nms: number[]
-
Default value length: number = 1
Returns any[]
scale
-
Parameters
-
-
value: object
-
Optional x?: undefined | number
-
Optional y?: undefined | number
-
Optional z?: undefined | number
toWavefrontOBJ
- toWavefrontOBJ(primitive: IGeometry, scale?: number): string
-
Parameters
-
-
Default value scale: number = 1
Returns string
translate
-
Parameters
-
-
offset: object
-
Optional x?: undefined | number
-
Optional y?: undefined | number
-
Optional z?: undefined | number
wireframe
- wireframe(indices: number[]): number[]
-
Parameters
Returns number[]
应用默认圆参数。