MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / extrudePolygon

Function extrudePolygon

src/scene/index.ts:451–457  ·  view source on GitHub ↗
(
  handle: SceneNodeHandle,
  polygon: number[],
  depth: number,
)

Source from the content-addressed store, hash-verified

449 * Extrusion goes from Y=0 to Y=depth.
450 */
451export function extrudePolygon(
452 handle: SceneNodeHandle,
453 polygon: number[],
454 depth: number,
455): void {
456 bloom_scene_extrude_polygon(handle, polygon as any, polygon.length / 2, depth);
457}
458
459/**
460 * Subtract an axis-aligned box from a scene node's geometry.

Callers 7

interactive.tsFile · 0.90
wallSystemFunction · 0.90
slabSystemFunction · 0.90
wallSystemFunction · 0.90
shadows.tsFile · 0.90
makeWallFunction · 0.90
makeBoxFunction · 0.90

Calls 1

Tested by

no test coverage detected