Class Voxelizer

Constructors

Properties

raycaster: Raycaster

Methods

  • Parameters

    • pos: Vector3
    • mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
    • dir: Vector3 = ...

    Returns boolean

  • Parameters

    • mesh: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
    • gridSize: number
    • dir: Vector3 = ...
    • OptionalboundingBoxFunc: ((boundingBox: Box3) => void)
        • (boundingBox): void
        • Parameters

          • boundingBox: Box3

          Returns void

    Returns {
        position: Vector3;
    }[]

  • Parameters

    • scene: Group<Object3DEventMap>
    • gridSize: number
    • modelSize: number
    • dir: Vector3 = ...
    • OptionalboundingBoxFunc: ((boundingBox: Box3) => void)
        • (boundingBox): void
        • Parameters

          • boundingBox: Box3

          Returns void

    Returns Voxel[]