Thursday, 19 August 2010

Shape Analysis helpers

Rebuilt wrappers and added the shape analysis package. Implemented some shape dump
and topology investigation helpers methods in Naro. Used the helpers to investigate why extrude edge drawing displays some extra lines on the extrude faces.
It seems that the shapes that Naro creates are valid.

A rectangle shape sample dump analysis:

DEBUG2010-08-19 01:02:33 - --- Shape Info ---
DEBUG2010-08-19 01:02:33 - Extracted 8 vertexes
DEBUG2010-08-19 01:02:33 - vertex: 0,0,0
DEBUG2010-08-19 01:02:33 - vertex: 0,100,0
DEBUG2010-08-19 01:02:33 - vertex: 0,100,0
DEBUG2010-08-19 01:02:33 - vertex: 100,100,0
DEBUG2010-08-19 01:02:33 - vertex: 100,100,0
DEBUG2010-08-19 01:02:33 - vertex: 100,0,0
DEBUG2010-08-19 01:02:33 - vertex: 100,0,0
DEBUG2010-08-19 01:02:33 - vertex: 0,0,0
DEBUG2010-08-19 01:02:33 - Extracted 4 edges
DEBUG2010-08-19 01:02:33 - Extracted 1 wires
DEBUG2010-08-19 01:02:33 - Extracted 1 faces
DEBUG2010-08-19 01:02:33 - -------------------
DEBUG2010-08-19 01:02:33 - --- Shape Analysis results ---
DEBUG2010-08-19 01:02:33 - 4 EDGE (Oriented)
DEBUG2010-08-19 01:02:33 - 4 EDGE (Shared)
DEBUG2010-08-19 01:02:33 - 1 FACE
DEBUG2010-08-19 01:02:33 - 1 FACE (Free)
DEBUG2010-08-19 01:02:33 - 8 VERTEX (Oriented)
DEBUG2010-08-19 01:02:33 - 4 VERTEX (Shared)
DEBUG2010-08-19 01:02:33 - 1 WIRE
DEBUG2010-08-19 01:02:33 - -------------------
DEBUG2010-08-19 01:02:33 - --- NumShape Info ---
DEBUG2010-08-19 01:02:33 - 4 VERTEX
DEBUG2010-08-19 01:02:33 - 4 EDGE
DEBUG2010-08-19 01:02:33 - 1 WIRE
DEBUG2010-08-19 01:02:33 - 1 FACE
DEBUG2010-08-19 01:02:33 - 0 SHELL
DEBUG2010-08-19 01:02:33 - 0 SOLID
DEBUG2010-08-19 01:02:33 - 0 COMPSOLID
DEBUG2010-08-19 01:02:33 - 0 COMPOUND
DEBUG2010-08-19 01:02:33 - -------------------
DEBUG2010-08-19 01:02:33 - --- Check shape ---
DEBUG2010-08-19 01:02:33 - Valid Shape
DEBUG2010-08-19 01:02:33 - -------------------

No comments:

Post a Comment