Ignore:
Timestamp:
Nov 28, 2009, 6:01:00 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
02911f
Parents:
ea3627
git-author:
Frederik Heber <heber@…> (11/28/09 17:52:05)
git-committer:
Frederik Heber <heber@…> (11/28/09 18:01:00)
Message:

The finding of the degenerated polygons' endpoints was not yet correct, fixed.

  • PROBLEM: we always looked for quadragons as atomic units of degenerated polygons, however for aromatic rings there may actually be no quadrons sub parts but only a a hexagon to be found.
  • Tesselation::CorrectAllDegeneratedPolygons(): rename ListofFourse -> ListofDegeneratedPolygons
  • FIX: Tesselation::CorrectAllDegeneratedPolygons(): Number of simply degenerated polygons was returned instead of number of degenerated polygons
  • Rewritten Tesselation::CorrectAllDegeneratedPolygons() in the following manner (which is also a lot faster than before):
    1. Go through all BoundaryPoints
    2. Check whether they have two triangles with anti-parallel NormalVectors, indicating that this point is part of a degenerated polygon.
    3. Combine endpoint candidates based on whether there is a BoundaryLineSet in between, then put them into the same polygon.
    4. Proceed with 3. until all candidates have been put into BoundaryPolygonSets
    5. continue with the unchanged remainder on this new "ListofFours" (our list of degenerated polygons).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.hpp

    rea3627 r246a3c  
    4747#define Raster3DSuffix ".r3d"
    4848#define VRMLSUffix ".wrl"
     49
     50#define ParallelEpsilon 1e-3
    4951
    5052// ======================================================= some template functions =========================================
Note: See TracChangeset for help on using the changeset viewer.