Skip to main content

MeshTopology

Represents the topology of a mesh, defining how vertices are connected to form primitives.

TypeNameInterface Description
EnumLineLoop

Function: A series of lines where each vertex connects to the next and the last vertex connects back to the first.

EnumLines

Function: Each pair of consecutive vertices forms a line segment.

EnumLineStrip

Function: A series of connected line segments where each vertex (except the first) uses the previous vertex as an endpoint.

EnumPoints

Function: Each vertex is a separate point.

EnumTriangleFan

Function: A series of triangles where each new vertex (after the first two) forms a triangle with the first vertex and the previous vertex.

EnumTriangles

Function: Each set of three consecutive vertices forms a triangle.

EnumTriangleStrip

Function: A series of triangles where each new vertex (after the first two) forms a triangle with the previous two vertices.

EnumUnknown

Function: The mesh topology is unknown or not specified.

Examples

LineLoop

let value = APJS.MeshTopology.LineLoop;

Lines

let value = APJS.MeshTopology.Lines;

LineStrip

let value = APJS.MeshTopology.LineStrip;

Points

let value = APJS.MeshTopology.Points;

TriangleFan

let value = APJS.MeshTopology.TriangleFan;

Triangles

let value = APJS.MeshTopology.Triangles;

TriangleStrip

let value = APJS.MeshTopology.TriangleStrip;

Unknown

let value = APJS.MeshTopology.Unknown;

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use MeshTopology here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies