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

BSPTree class and recovery of a Euclidean 3D BRep

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1
    • None
    • 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
          5 kB
          Andrew Willis
        2. BSPMesh2.java
          5 kB
          Andrew Willis
        3. BSPMesh2.java
          7 kB
          Andrew Willis
        4. BSPMesh2.java
          9 kB
          Andrew Willis
        5. BSPMesh2.java
          9 kB
          Andrew Willis

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: