Skip to content

Class: TextGeometry

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new TextGeometry(text, options): TextGeometry

Parameters

NameType
textstring
optionsTextGeometryArgs

Returns

TextGeometry

Overrides

ExtrudeGeometry.constructor

Defined in

packages/geometry/text/TextGeometry.ts:14

Properties

shapes

shapes: Shape2D[]

Inherited from

ExtrudeGeometry.shapes

Defined in

packages/geometry/ExtrudeGeometry/ExtrudeGeometry.ts:17


options

options: TextGeometryArgs

Overrides

ExtrudeGeometry.options

Defined in

packages/geometry/text/TextGeometry.ts:13


instanceID

instanceID: string

Inherited from

ExtrudeGeometry.instanceID

Defined in

src/core/geometry/GeometryBase.ts:39


name

name: string

Inherited from

ExtrudeGeometry.name

Defined in

src/core/geometry/GeometryBase.ts:40


subGeometries

subGeometries: SubGeometry[] = []

Inherited from

ExtrudeGeometry.subGeometries

Defined in

src/core/geometry/GeometryBase.ts:41


morphTargetsRelative

morphTargetsRelative: boolean

Inherited from

ExtrudeGeometry.morphTargetsRelative

Defined in

src/core/geometry/GeometryBase.ts:42


morphTargetDictionary

morphTargetDictionary: Object

Index signature

▪ [blenderName: string]: number

Inherited from

ExtrudeGeometry.morphTargetDictionary

Defined in

src/core/geometry/GeometryBase.ts:43


skinNames

skinNames: string[]

Inherited from

ExtrudeGeometry.skinNames

Defined in

src/core/geometry/GeometryBase.ts:44


bindPose

bindPose: Matrix4[]

Inherited from

ExtrudeGeometry.bindPose

Defined in

src/core/geometry/GeometryBase.ts:45


blendShapeData

blendShapeData: BlendShapeData

Inherited from

ExtrudeGeometry.blendShapeData

Defined in

src/core/geometry/GeometryBase.ts:46


vertexDim

vertexDim: number

Inherited from

ExtrudeGeometry.vertexDim

Defined in

src/core/geometry/GeometryBase.ts:47


vertexCount

vertexCount: number = 0

Inherited from

ExtrudeGeometry.vertexCount

Defined in

src/core/geometry/GeometryBase.ts:48

Accessors

font

get font(): Font

Returns

Font

Defined in

packages/geometry/text/TextGeometry.ts:20


text

get text(): string

Returns

string

Defined in

packages/geometry/text/TextGeometry.ts:24

set text(v): void

Parameters

NameType
vstring

Returns

void

Defined in

packages/geometry/text/TextGeometry.ts:36


fontSize

get fontSize(): number

Returns

number

Defined in

packages/geometry/text/TextGeometry.ts:28

set fontSize(v): void

Parameters

NameType
vnumber

Returns

void

Defined in

packages/geometry/text/TextGeometry.ts:32


indicesBuffer

get indicesBuffer(): GeometryIndicesBuffer

Returns

GeometryIndicesBuffer

Inherited from

ExtrudeGeometry.indicesBuffer

Defined in

src/core/geometry/GeometryBase.ts:69


vertexBuffer

get vertexBuffer(): GeometryVertexBuffer

Returns

GeometryVertexBuffer

Inherited from

ExtrudeGeometry.vertexBuffer

Defined in

src/core/geometry/GeometryBase.ts:73


vertexAttributes

get vertexAttributes(): string[]

Returns

string[]

Inherited from

ExtrudeGeometry.vertexAttributes

Defined in

src/core/geometry/GeometryBase.ts:77


vertexAttributeMap

get vertexAttributeMap(): Map<string, VertexAttributeData>

Returns

Map<string, VertexAttributeData>

Inherited from

ExtrudeGeometry.vertexAttributeMap

Defined in

src/core/geometry/GeometryBase.ts:81


geometryType

get geometryType(): GeometryVertexType

Returns

GeometryVertexType

Inherited from

ExtrudeGeometry.geometryType

Defined in

src/core/geometry/GeometryBase.ts:85

set geometryType(value): void

Parameters

NameType
valueGeometryVertexType

Returns

void

Inherited from

ExtrudeGeometry.geometryType

Defined in

src/core/geometry/GeometryBase.ts:88


bounds

get bounds(): BoundingBox

Returns

BoundingBox

Inherited from

ExtrudeGeometry.bounds

Defined in

src/core/geometry/GeometryBase.ts:92

set bounds(value): void

Parameters

NameType
valueBoundingBox

Returns

void

Inherited from

ExtrudeGeometry.bounds

Defined in

src/core/geometry/GeometryBase.ts:135

Methods

addSubGeometry

addSubGeometry(...lodLevels): SubGeometry

add subGeometry from lod level

Parameters

NameType
...lodLevelsLODDescriptor[]

Returns

SubGeometry

See

LODDescriptor

Inherited from

ExtrudeGeometry.addSubGeometry

Defined in

src/core/geometry/GeometryBase.ts:144


generate

generate(shaderReflection): void

create geometry by shaderReflection

Parameters

NameTypeDescription
shaderReflectionShaderReflectionShaderReflection

Returns

void

Inherited from

ExtrudeGeometry.generate

Defined in

src/core/geometry/GeometryBase.ts:155


setIndices

setIndices(data): void

Parameters

NameType
dataArrayBufferData

Returns

void

Inherited from

ExtrudeGeometry.setIndices

Defined in

src/core/geometry/GeometryBase.ts:165


setAttribute

setAttribute(attribute, data): void

Parameters

NameType
attributestring
dataArrayBufferData

Returns

void

Inherited from

ExtrudeGeometry.setAttribute

Defined in

src/core/geometry/GeometryBase.ts:177


getAttribute

getAttribute(attribute): VertexAttributeData

Parameters

NameType
attributestring

Returns

VertexAttributeData

Inherited from

ExtrudeGeometry.getAttribute

Defined in

src/core/geometry/GeometryBase.ts:190


hasAttribute

hasAttribute(attribute): boolean

Parameters

NameType
attributestring

Returns

boolean

Inherited from

ExtrudeGeometry.hasAttribute

Defined in

src/core/geometry/GeometryBase.ts:194


genWireframe

genWireframe(): Vector3[]

Returns

Vector3[]

Inherited from

ExtrudeGeometry.genWireframe

Defined in

src/core/geometry/GeometryBase.ts:198


compute

compute(): void

Returns

void

Inherited from

ExtrudeGeometry.compute

Defined in

src/core/geometry/GeometryBase.ts:251


computeNormals

computeNormals(): this

Returns

this

Inherited from

ExtrudeGeometry.computeNormals

Defined in

src/core/geometry/GeometryBase.ts:270


isPrimitive

isPrimitive(): boolean

Returns

boolean

Inherited from

ExtrudeGeometry.isPrimitive

Defined in

src/core/geometry/GeometryBase.ts:312


destroy

destroy(force?): void

Parameters

NameType
force?boolean

Returns

void

Inherited from

ExtrudeGeometry.destroy

Defined in

src/core/geometry/GeometryBase.ts:316