Skip to content

Class: GeometryBase

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new GeometryBase()

Defined in

src/core/geometry/GeometryBase.ts:47

Properties

instanceID

instanceID: string

Defined in

src/core/geometry/GeometryBase.ts:34


name

name: string

Defined in

src/core/geometry/GeometryBase.ts:35


subGeometries

subGeometries: SubGeometry[] = []

Defined in

src/core/geometry/GeometryBase.ts:36


morphTargetsRelative

morphTargetsRelative: boolean

Defined in

src/core/geometry/GeometryBase.ts:37


morphTargetDictionary

morphTargetDictionary: Object

Type declaration

NameType
valuestring
keynumber

Defined in

src/core/geometry/GeometryBase.ts:38

Accessors

indicesBuffer

get indicesBuffer(): GeometryIndicesBuffer

Returns

GeometryIndicesBuffer

Defined in

src/core/geometry/GeometryBase.ts:58


vertexBuffer

get vertexBuffer(): GeometryVertexBuffer

Returns

GeometryVertexBuffer

Defined in

src/core/geometry/GeometryBase.ts:62


vertexAttributes

get vertexAttributes(): string[]

Returns

string[]

Defined in

src/core/geometry/GeometryBase.ts:66


vertexAttributeMap

get vertexAttributeMap(): Map<string, VertexAttributeData>

Returns

Map<string, VertexAttributeData>

Defined in

src/core/geometry/GeometryBase.ts:70


geometryType

get geometryType(): GeometryVertexType

Returns

GeometryVertexType

Defined in

src/core/geometry/GeometryBase.ts:74

set geometryType(value): void

Parameters

NameType
valueGeometryVertexType

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:77


bounds

get bounds(): BoundingBox

Returns

BoundingBox

Defined in

src/core/geometry/GeometryBase.ts:81

set bounds(value): void

Parameters

NameType
valueBoundingBox

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:124

Methods

addSubGeometry

addSubGeometry(...lodLevels): void

add subGeometry from lod level

See

LodLevel

Parameters

NameType
...lodLevelsLodLevel[]

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:132


generate

generate(shaderReflection): void

create geometry by shaderReflection

Parameters

NameTypeDescription
shaderReflectionShaderReflectionShaderReflection

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:142


setIndices

setIndices(data): void

Parameters

NameType
dataArrayBufferData

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:151


setAttribute

setAttribute(attribute, data): void

Parameters

NameType
attributestring
dataArrayBufferData

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:163


getAttribute

getAttribute(attribute): VertexAttributeData

Parameters

NameType
attributestring

Returns

VertexAttributeData

Defined in

src/core/geometry/GeometryBase.ts:176


hasAttribute

hasAttribute(attribute): boolean

Parameters

NameType
attributestring

Returns

boolean

Defined in

src/core/geometry/GeometryBase.ts:180


genWireframe

genWireframe(): Vector3[]

Returns

Vector3[]

Defined in

src/core/geometry/GeometryBase.ts:184


compute

compute(): void

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:208


computeNormals

computeNormals(): GeometryBase

Returns

GeometryBase

Defined in

src/core/geometry/GeometryBase.ts:227


isPrimitive

isPrimitive(): boolean

Returns

boolean

Defined in

src/core/geometry/GeometryBase.ts:269


destroy

destroy(force?): void

Parameters

NameType
force?boolean

Returns

void

Defined in

src/core/geometry/GeometryBase.ts:273