Skip to content

Documentation / scene / PlaneCreationOptions

Interface: PlaneCreationOptions

Defined in: libs/scene/src/shapes/plane.ts:9

Creation options for plane shapes

Extends

Properties

size?

optional size?: number

Defined in: libs/scene/src/shapes/plane.ts:11

Default size of axis x and axis y, default is 1


sizeX?

optional sizeX?: number

Defined in: libs/scene/src/shapes/plane.ts:13

Size of axis x, default value equals to size


sizeY?

optional sizeY?: number

Defined in: libs/scene/src/shapes/plane.ts:15

Size of axis y, default value equals to size


resolution?

optional resolution?: number

Defined in: libs/scene/src/shapes/plane.ts:17

Resolution, default is 1


resolutionX?

optional resolutionX?: number

Defined in: libs/scene/src/shapes/plane.ts:19

Resolution X, default value equals to resolution


resolutionY?

optional resolutionY?: number

Defined in: libs/scene/src/shapes/plane.ts:21

Resolution Y, default value equals to resolution


twoSided?

optional twoSided?: boolean

Defined in: libs/scene/src/shapes/plane.ts:23

Whether this plane have front side, default is true


anchor?

optional anchor?: number

Defined in: libs/scene/src/shapes/plane.ts:25

Anchor, default is 0.5


anchorX?

optional anchorX?: number

Defined in: libs/scene/src/shapes/plane.ts:27

Anchor X, default value equals to anchor


anchorY?

optional anchorY?: number

Defined in: libs/scene/src/shapes/plane.ts:29

Anchor Z, default value equals to anchor


needNormal?

optional needNormal?: boolean

Defined in: libs/scene/src/shapes/shape.ts:12

true if we need to calculate normals for the shape

Inherited from

ShapeCreationOptions.needNormal


needTangent?

optional needTangent?: boolean

Defined in: libs/scene/src/shapes/shape.ts:14

true if we need to calculate tangents for the shape

Inherited from

ShapeCreationOptions.needTangent


needUV?

optional needUV?: boolean

Defined in: libs/scene/src/shapes/shape.ts:16

true if we need to calculate texture coordinates for the shape

Inherited from

ShapeCreationOptions.needUV


transform?

optional transform?: Matrix4x4

Defined in: libs/scene/src/shapes/shape.ts:18

Transform matrix for the shape

Inherited from

ShapeCreationOptions.transform

Released under the MIT License.