MarchingCubes class

Inheritance
  • Object
  • Object3D
  • Mesh
  • MarchingCubes

Constructors

MarchingCubes(double resolution, [Material? material, bool enableUvs = false, bool enableColors = false, int maxPolyCount = 10000])

Properties

autoUpdate bool
getter/setter pairinherited
background ↔ dynamic
getter/setter pairinherited
bindMatrix ↔ Matrix4?
getter/setter pairinherited
boundingBox ↔ BoundingBox?
getter/setter pairinherited
boundingSphere ↔ BoundingSphere?
getter/setter pairinherited
castShadow bool
getter/setter pairinherited
children List<Object3D>
getter/setter pairinherited
clist Float32List
final
colorArray ↔ Float32Array
getter/setter pair
count int?
getter/setter pairinherited
customDepthMaterial ↔ Material?
  • Custom depth material to be used when rendering to the depth map. Can only be used in context of meshes.
  • When shadow-casting with a DirectionalLight or SpotLight, if you are (a) modifying vertex positions in
  • the vertex shader, (b) using a displacement map, (c) using an alpha map with alphaTest, or (d) using a
  • transparent texture with alphaTest, you must specify a customDepthMaterial for proper shadows.
  • getter/setter pairinherited
    customDistanceMaterial ↔ Material?
    getter/setter pairinherited
    customRender ↔ OnRender?
    getter/setter pairinherited
    delta double
    getter/setter pair
    disposed bool
    getter/setter pairinherited
    enableColors bool
    getter/setter pair
    enableUvs bool
    getter/setter pair
    environment ↔ Texture?
    getter/setter pairinherited
    extra Map<String, dynamic>
    getter/setter pairinherited
    field ↔ Float32Array
    getter/setter pair
    frustumCulled bool
    getter/setter pairinherited
    geometry ↔ BufferGeometry?
    getter/setter pairinherited
    halfsize double
    getter/setter pair
    hashCode int
    The hash code for this object.
    no setterinherited
    id int
    getter/setter pairinherited
    instanceColor ↔ BufferAttribute<NativeArray<num>>?
    getter/setter pairinherited
    instanceMatrix ↔ InstancedBufferAttribute?
    getter/setter pairinherited
    isImmediateRenderObject bool
    getter/setter pairinherited
    isMarchingCubes bool
    getter/setter pair
    isolation double
    getter/setter pair
    layers ↔ Layers
    getter/setter pairinherited
    m1 → Matrix4
    finalinherited
    material ↔ Material?
    getter/setter pairinherited
    matrix ↔ Matrix4
    getter/setter pairinherited
    matrixAutoUpdate bool
    getter/setter pairinherited
    matrixWorld ↔ Matrix4
    getter/setter pairinherited
    matrixWorldAutoUpdate bool
    getter/setter pairinherited
    matrixWorldNeedsUpdate bool
    getter/setter pairinherited
    maxPolyCount int
    getter/setter pair
    modelViewMatrix ↔ Matrix4
    getter/setter pairinherited
    morphTargetDictionary Map<String, dynamic>?
    getter/setter pairinherited
    morphTargetInfluences List<double>
    getter/setter pairinherited
    name String
    getter/setter pairinherited
    nlist Float32List
    final
    normalArray ↔ Float32Array
    getter/setter pair
    normalCache ↔ Float32Array
    getter/setter pair
    normalMatrix ↔ Matrix3
    getter/setter pairinherited
    onAfterRender ↔ OnRender?
    An optional callback that is executed immediately after a 3D object is rendered. This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    getter/setter pairinherited
    onBeforeRender ↔ OnRender?
    getter/setter pairinherited
    overrideMaterial ↔ Material?
    getter/setter pairinherited
    palette ↔ Float32Array
    getter/setter pair
    parent ↔ Object3D?
    getter/setter pairinherited
    position ↔ Vector3
    getter/setter pairinherited
    positionArray ↔ Float32Array
    getter/setter pair
    quaternion ↔ Quaternion
    getter/setter pairinherited
    receiveShadow bool
    getter/setter pairinherited
    renderOrder int
    getter/setter pairinherited
    resolution double
    getter/setter pair
    rotation ↔ Euler
    getter/setter pairinherited
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    scale ↔ Vector3
    getter/setter pairinherited
    size double
    getter/setter pair
    size2 double
    getter/setter pair
    size3 double
    getter/setter pair
    skeleton ↔ Skeleton?
    getter/setter pairinherited
    tag String?
    getter/setter pairinherited
    type String
    getter/setter pairinherited
    up ↔ Vector3
    getter/setter pairinherited
    userData Map<String, dynamic>
    getter/setter pairinherited
    uuid String
    getter/setter pairinherited
    uvArray ↔ Float32Array
    getter/setter pair
    visible bool
    getter/setter pairinherited
    vlist Float32List
    final
    yd int
    getter/setter pair
    zd int
    getter/setter pair

    Methods

    add(Object3D? object) → Object3D
    Adds object as child of this object. An arbitrary number of objects may be added. Any current parent on an object passed in here will be removed, since an object can have at most one parent.
    inherited
    addAll(List<Object3D> objects) → Object3D
    Adds list objects as child of this object.
    inherited
    addBall(double ballx, double bally, double ballz, double strength, int subtract, [dynamic colors]) → void
    ////////////////////////////////// //////////////////////////////////
    addEventListener(String type, Function listener) → void
    type - The type of event to listen to.
    inherited
    addPlaneX(dynamic strength, dynamic subtract) → void
    addPlaneY(dynamic strength, dynamic subtract) → void
    addPlaneZ(dynamic strength, dynamic subtract) → void
    applyMatrix4(Matrix4 matrix) → void
    Applies the matrix transform to the object and updates the object's position, rotation and scale.
    inherited
    applyQuaternion(Quaternion q) → Object3D
    Applies the rotation represented by the quaternion to the object.
    inherited
    attach(Object3D object) → Object3D
    inherited
    blur([double intensity = 1]) → void
    checkGeometryIntersection(Mesh object, Material? material, Raycaster raycaster, Ray ray, BufferAttribute<NativeArray<num>>? uv, BufferAttribute<NativeArray<num>>? uv1, BufferAttribute<NativeArray<num>>? normal, int a, int b, int c) → Intersection?
    inherited
    clear() → Object3D
    Removes all child objects.
    inherited
    clearListeners() → void
    Remove all Listeners.
    inherited
    clone([bool? recursive = true]) → Mesh
    Returns a clone of this name object and its descendants.
    inherited
    compNorm(int q) → void
    computeBoundingBox() → void
    inherited
    computeBoundingSphere() → void
    inherited
    computeIntersections(Raycaster raycaster, List<Intersection> intersects, dynamic rayLocalSpace) → void
    inherited
    copy(Object3D source, [bool? recursive]) → Mesh
    recursive -- If set to true, descendants of the object are copied next to the existing ones. If set to false, descendants are left unchanged. Default is true.
    inherited
    dispatchEvent(Event event) → void
    event - The event that gets fired.
    inherited
    dispose() → void
    inherited
    extractFromCache(Map<String, dynamic> cache) List<Map<String, dynamic>>
    inherited
    getCell(int x, int y, int z) double
    getObjectById(String id) → Object3D?
    id -- Unique number of the object instance
    inherited
    getObjectByName(String name) → Object3D?
    name -- String to match to the children's Object3D.name property.
    inherited
    getObjectByProperty(String name, String value) → Object3D?
    name -- the property name to search for.
    inherited
    getProperty(String propertyName) → dynamic
    inherited
    getValue(String name) → Matrix4?
    inherited
    getVertexPosition(int index, Vector3 target) → Vector3
    Returns the local-space position of the vertex at the given index, taking into account the current animation state of both morph targets and skinning.
    inherited
    getWorldDirection(Vector3 target) → Vector3
    target — the result will be copied into this Vector3.
    inherited
    getWorldPosition(Vector3? target) → Vector3
    target — the result will be copied into this Vector3.
    inherited
    getWorldQuaternion(Quaternion target) → Quaternion
    target — the result will be copied into this Quaternion.
    inherited
    getWorldScale(Vector3 target) → Vector3
    target — the result will be copied into this Vector3.
    inherited
    hasEventListener(String type, Function listener) bool
    type - The type of event to listen to.
    inherited
    init() → void
    inherited
    insert(int index, Object3D? object) → Object3D
    Adds object as child of this object. An arbitrary number of objects may be added. Any current parent on an object passed in here will be removed, since an object can have at most one parent.
    inherited
    lerp(dynamic a, dynamic b, dynamic t) double
    //////////////////// ////////////////////
    localToWorld(Vector3 vector) → Vector3
    vector - A vector representing a position in this object's local space.
    inherited
    lookAt(Vector3 position) → void
    vector - A vector representing a position in world space. Optionally, the x, y and z components of the world space position.
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    onAfterShadow({WebGLRenderer? renderer, Object3D? scene, Camera? camera, Camera? shadowCamera, BufferGeometry? geometry, Material? material, Map<String, dynamic>? group}) → void
    inherited
    onBeforeShadow({WebGLRenderer? renderer, Object3D? scene, Camera? camera, Camera? shadowCamera, BufferGeometry? geometry, Material? material, Map<String, dynamic>? group}) → void
    inherited
    onQuaternionChange() → void
    inherited
    onRotationChange() → void
    inherited
    polygonize(dynamic fx, dynamic fy, dynamic fz, int q, dynamic isol) int
    posnormtriv(dynamic pos, dynamic norm, dynamic colors, int o1, int o2, int o3) → void
    raycast(Raycaster raycaster, List<Intersection> intersects) → void
    Get intersections between a casted ray and this mesh. Raycaster.intersectObject will call this method, but the results are not ordered.
    inherited
    remove(Object3D object) → Object3D?
    Removes object as child of this object. An arbitrary number of objects may be removed.
    inherited
    removeEventListener(String type, Function listener) → void
    type - The type of the listener that gets removed.
    inherited
    removeFromParent() → Object3D
    Removes this object from its current parent.
    inherited
    removeList(List<Object3D> objects) → Object3D
    Removes list of objects from this object.
    inherited
    reset() → void
    rotateOnAxis(Vector3 axis, double angle) → Object3D
    axis -- A normalized vector in object space.
    inherited
    rotateOnWorldAxis(Vector3 axis, double angle) → Object3D
    axis -- A normalized vector in world space.
    inherited
    rotateX(double angle) → Object3D
    angle - the angle to rotate in radians.
    inherited
    rotateY(double angle) → Object3D
    angle - the angle to rotate in radians.
    inherited
    rotateZ(double angle) → Object3D
    angle - the angle to rotate in radians.
    inherited
    serialize(Map<String, dynamic> library, dynamic element, Object3dMeta? meta) String
    inherited
    setCell(int x, int y, int z, dynamic value) → void
    ////////////////////////////////// //////////////////////////////////
    setProperty(String propertyName, dynamic newValue) → Object3D
    inherited
    setRotationFromAxisAngle(Vector3 axis, double angle) → void
    axis - A normalized vector in object space.
    inherited
    setRotationFromEuler(Euler euler) → void
    euler -- Euler angle specifying rotation amount.
    inherited
    setRotationFromMatrix(dynamic m) → void
    m - rotate the quaternion by the rotation component of the matrix.
    inherited
    setRotationFromQuaternion(Quaternion q) → void
    q - normalized Quaternion.
    inherited
    toJson({Object3dMeta? meta}) Map<String, dynamic>
    meta -- object containing metadata such as materials, textures or images for the object.
    inherited
    toString() String
    A string representation of this object.
    inherited
    translateOnAxis(Vector3 axis, double distance) → Object3D
    axis - A normalized vector in object space.
    inherited
    translateX(double distance) → Object3D
    Translates object along x axis in object space by distance units.
    inherited
    translateY(double distance) → Object3D
    Translates object along y axis in object space by distance units.
    inherited
    translateZ(double distance) → Object3D
    Translates object along z axis in object space by distance units.
    inherited
    traverse(dynamic callback(Object3D)) → void
    callback - A function with as first argument an object3D object.
    inherited
    traverseAncestors(dynamic callback(Object3D?)) → void
    callback - A function with as first argument an object3D object.
    inherited
    traverseVisible(dynamic callback(Object3D?)) → void
    callback - A function with as first argument an object3D object.
    inherited
    update() → void
    updateMatrix() → void
    Updates the local transform.
    inherited
    updateMatrixWorld([bool force = false]) → void
    force - A boolean that can be used to bypass matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame. Useful if you cannot wait for the renderer to update it on the next frame (assuming matrixWorldAutoUpdate set to true).
    inherited
    updateMorphTargets() → void
    Updates the morphTargets to have no influence on the object. Resets the morphTargetInfluences and morphTargetDictionary properties.
    inherited
    updateWorldMatrix(bool updateParents, bool updateChildren) → void
    updateParents - recursively updates global transform of ancestors.
    inherited
    vIntX(int q, int offset, dynamic isol, dynamic x, dynamic y, dynamic z, dynamic valp1, dynamic valp2, int cOffset1, int cOffset2) → void
    vIntY(int q, int offset, dynamic isol, dynamic x, dynamic y, dynamic z, dynamic valp1, dynamic valp2, int cOffset1, int cOffset2) → void
    vIntZ(int q, int offset, dynamic isol, dynamic x, dynamic y, dynamic z, dynamic valp1, dynamic valp2, int cOffset1, int cOffset2) → void
    worldToLocal(Vector3 vector) → Vector3
    vector - A vector representing a position in world space.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited
    operator [](dynamic key) → dynamic
    inherited
    operator []=(String key, dynamic value) → void
    inherited