diff --git a/static/javascript3d/classes/Voxels.html b/static/javascript3d/classes/Voxels.html new file mode 100644 index 0000000..093eadb --- /dev/null +++ b/static/javascript3d/classes/Voxels.html @@ -0,0 +1,181 @@ +Voxels | @dimforge/rapier3d
+
+ +
+
+
+
+ +

Class Voxels

+
+

A shape that is made of voxels.

+
+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+
+

Properties

+
+
+

Methods

+
+
+
+

Constructors

+
+ +
    + +
  • +

    Creates a new 3D Voxels.

    +
    +
    +

    Parameters

    +
      +
    • +
      voxels: Float32Array | Int32Array
      +

      Defines the set of voxels.

      +
    • +
    • +
      voxelSize: Vector
      +

      The size of each voxel.

      +
    • +
    +

    Returns Voxels

+
+

Properties

+
+ +
data: Float32Array | Int32Array
+

Defines the set of voxels. If this is a Int32Array then each voxel is defined from its (signed) grid coordinates, with 3 (resp 2) contiguous integers per voxel in 3D (resp 2D). If this is a Float32Array, each voxel will be such that they contain at least one point from this array where each point is defined from 3 (resp 2) contiguous numbers per point in 3D (resp 2D).

+
+
+ +
type: Voxels = ShapeType.Voxels
+
+
+

Methods

+
+ +
    + +
  • +

    Returns RawShape

+
+ +
    + +
  • +

    instant mode without cache

    +
    +
    +

    Parameters

    +
      +
    • +
      rawSet: RawColliderSet
    • +
    • +
      handle: number
    +

    Returns Shape

+
+ +
    + +
  • +

    If this collider has a Voxels shape, this will mark the voxel at the given grid coordinates as filled or empty (depending on the filled

    em> argument).

    +
    +
    +

    Parameters

    +
      +
    • +
      ix: number
    • +
    • +
      iy: number
    • +
    • +
      iz: number
    • +
    • +
      filled: boolean
    • +
    +

    Returns undefined

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/static/javascript3d/enums/ShapeType.html b/static/javascript3d/enums/ShapeType.html index ca545fc..134b876 100644 --- a/static/javascript3d/enums/ShapeType.html +++ b/static/javascript3d/enums/ShapeType.html @@ -44,6 +44,7 @@

Enumeration Members

Segment TriMesh Triangle +Voxels

Enumeration Members

@@ -131,7 +132,12 @@
Triangle: 5
+
  • Defined in geometry/shape.d.ts:76
  • +
    + +
    Voxels: 18
    +
  • Triangle
  • +
  • Voxels
  • Generated using TypeDoc

    \ No newline at end of file diff --git a/static/javascript3d/index.html b/static/javascript3d/index.html index 0361fde..7752061 100644 --- a/static/javascript3d/index.html +++ b/static/javascript3d/index.html @@ -112,6 +112,7 @@

    Classes

    UnitMultibodyJoint Vector3 VectorOps +Voxels World