Skip to content

Bug with large meshes  #16

@AlexTheBear

Description

@AlexTheBear

There is a bug with large meshes, simple to fix, I've included a diff below of my local branch in the hope it will assist:

diff --git a/js/vx/vxMesh.js b/js/vx/vxMesh.js
index 59ad3e9..da9ea6b 100755
--- a/js/vx/vxMesh.js
+++ b/js/vx/vxMesh.js
@@ -236,7 +236,7 @@ vxMesh.prototype.AddFace = function(
// First Check if it's past the limit. divide by 6, bc 3 vertices per face, 2 vertices per edge, so 6 elements are
// added each time.
if (this.ElementCount > 65000 / 6) {

  • initNewMeshPart();
  • this.initNewMeshPart();
    }

// up the element count

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions