Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-780

BSPTree class and recovery of a Euclidean 3D BRep

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Environment:

      Linux

      Description

      New to the work here. Thanks for your efforts on this code.

      I create a BSPTree from a BoundaryRep (Brep) my test Brep is a cube as represented by a float array containing 8 3D points in(x,y,z) order and an array of indices (12 triplets for the 12 faces of the cube). I construct a BSPMesh() as shown in the code below. I can construct the PolyhedronsSet() but have problems extracting the faces from the BSPTree to reconstruct the BRep. The attached code (BSPMesh2.java) shows that a small change to 1 of the vertex positions causes/corrects the problem.

      Any ideas?

        Attachments

        1. BSPMesh2.java
          9 kB
          Andrew Willis
        2. BSPMesh2.java
          9 kB
          Andrew Willis
        3. BSPMesh2.java
          7 kB
          Andrew Willis
        4. BSPMesh2.java
          5 kB
          Andrew Willis
        5. BSPMesh2.java
          5 kB
          Andrew Willis

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              arwillis Andrew Willis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: