Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartTexturedIndexedTriangles

Defines textured indexed triangles that can be shown in a MarkupModel.

Use MarkupModel.addTexturedIndexedTrianglesPart to create a new instance of this class.

Hierarchy

  • Part
    • PartTexturedIndexedTriangles

Index

Accessors

customData

customData: any

Custom data for the part. This field is not used by C3.

Methods

rayIntersect

setMeshData

  • setMeshData(vertices: ArrayLike<number>, textureCoords: ArrayLike<number>, indices: ArrayLike<number>): void
  • Sets the triangles in the part using the given vertices and indices. See geo.MeshIndexedTriangles for an explanation of these arrays. The textureCoords array should contain per vertex 2d texture coordinates (s,t) for each vertex in vertices.

    Parameters

    • vertices: ArrayLike<number>
    • textureCoords: ArrayLike<number>
    • indices: ArrayLike<number>

    Returns void

setTexture

  • setTexture(texture: Texture): void
  • Sets the Texture of the part.

    Parameters

    Returns void

Generated using TypeDoc