Class: ExtrudeGeometry
Hierarchy
↳
ExtrudeGeometry
Constructors
Properties
Accessors
Methods
- build
- addSubGeometry
- generate
- setIndices
- setAttribute
- getAttribute
- hasAttribute
- genWireframe
- compute
- computeNormals
- isPrimitive
- destroy
Constructors
constructor
• new ExtrudeGeometry()
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:47
Properties
vScale
• vScale: number
Defined in
src/core/geometry/ExtrudeGeometry.ts:21
uNegate
• uNegate: boolean
Defined in
src/core/geometry/ExtrudeGeometry.ts:22
sections
• sections: Section
[]
Defined in
src/core/geometry/ExtrudeGeometry.ts:23
instanceID
• instanceID: string
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:34
name
• name: string
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:35
subGeometries
• subGeometries: SubGeometry
[] = []
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:36
morphTargetsRelative
• morphTargetsRelative: boolean
Inherited from
GeometryBase.morphTargetsRelative
Defined in
src/core/geometry/GeometryBase.ts:37
morphTargetDictionary
• morphTargetDictionary: Object
Type declaration
Name | Type |
---|---|
value | string |
key | number |
Inherited from
GeometryBase.morphTargetDictionary
Defined in
src/core/geometry/GeometryBase.ts:38
Accessors
indicesBuffer
• get
indicesBuffer(): GeometryIndicesBuffer
Returns
Inherited from
GeometryBase.indicesBuffer
Defined in
src/core/geometry/GeometryBase.ts:58
vertexBuffer
• get
vertexBuffer(): GeometryVertexBuffer
Returns
Inherited from
GeometryBase.vertexBuffer
Defined in
src/core/geometry/GeometryBase.ts:62
vertexAttributes
• get
vertexAttributes(): string
[]
Returns
string
[]
Inherited from
GeometryBase.vertexAttributes
Defined in
src/core/geometry/GeometryBase.ts:66
vertexAttributeMap
• get
vertexAttributeMap(): Map
<string
, VertexAttributeData
>
Returns
Map
<string
, VertexAttributeData
>
Inherited from
GeometryBase.vertexAttributeMap
Defined in
src/core/geometry/GeometryBase.ts:70
geometryType
• get
geometryType(): GeometryVertexType
Returns
Inherited from
GeometryBase.geometryType
Defined in
src/core/geometry/GeometryBase.ts:74
• set
geometryType(value
): void
Parameters
Name | Type |
---|---|
value | GeometryVertexType |
Returns
void
Inherited from
GeometryBase.geometryType
Defined in
src/core/geometry/GeometryBase.ts:77
bounds
• get
bounds(): BoundingBox
Returns
BoundingBox
Inherited from
GeometryBase.bounds
Defined in
src/core/geometry/GeometryBase.ts:81
• set
bounds(value
): void
Parameters
Name | Type |
---|---|
value | BoundingBox |
Returns
void
Inherited from
GeometryBase.bounds
Defined in
src/core/geometry/GeometryBase.ts:124
Methods
build
▸ build(shape
, isShapeClosed
, path
, vScale?
, uNegate?
): ExtrudeGeometry
for the points of start and end: Please ensure that you do not actively clone the starting point to the end of the shape array; closed: true. if you want them closed, it'll auto clone start point. closed: false.
Parameters
Name | Type | Default value |
---|---|---|
shape | Vector3 [] | undefined |
isShapeClosed | boolean | undefined |
path | Vector3 [] | undefined |
vScale | number | 1.0 |
uNegate | boolean | true |
Returns
Defined in
src/core/geometry/ExtrudeGeometry.ts:34
addSubGeometry
▸ addSubGeometry(...lodLevels
): void
add subGeometry from lod level
See
LodLevel
Parameters
Name | Type |
---|---|
...lodLevels | LodLevel [] |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:132
generate
▸ generate(shaderReflection
): void
create geometry by shaderReflection
Parameters
Name | Type | Description |
---|---|---|
shaderReflection | ShaderReflection | ShaderReflection |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:142
setIndices
▸ setIndices(data
): void
Parameters
Name | Type |
---|---|
data | ArrayBufferData |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:151
setAttribute
▸ setAttribute(attribute
, data
): void
Parameters
Name | Type |
---|---|
attribute | string |
data | ArrayBufferData |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:163
getAttribute
▸ getAttribute(attribute
): VertexAttributeData
Parameters
Name | Type |
---|---|
attribute | string |
Returns
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:176
hasAttribute
▸ hasAttribute(attribute
): boolean
Parameters
Name | Type |
---|---|
attribute | string |
Returns
boolean
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:180
genWireframe
▸ genWireframe(): Vector3
[]
Returns
Vector3
[]
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:184
compute
▸ compute(): void
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:208
computeNormals
▸ computeNormals(): ExtrudeGeometry
Returns
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:227
isPrimitive
▸ isPrimitive(): boolean
Returns
boolean
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:269
destroy
▸ destroy(force?
): void
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
void