HLRBRep_PolyAlgo.hxx File Reference

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_HLRBRep_PolyAlgo.hxx>
#include <HLRAlgo_Projector.hxx>
#include <Standard_Real.hxx>
#include <TopTools_SequenceOfShape.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <Handle_HLRAlgo_PolyAlgo.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Geom_Surface.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepAdaptor_Curve2d.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Address.hxx>
#include <Handle_HLRAlgo_PolyInternalData.hxx>
#include <GeomAbs_Shape.hxx>
#include <HLRBRep_PolyAlgo.lxx>
#include <Handle_TColStd_HArray1OfTransient.hxx>
#include <Standard_Macro.hxx>
#include <Handle_HLRAlgo_ListNodeOfListOfBPoint.hxx>
#include <TCollection_ListIterator.lxx>
#include <TColStd_Array1OfTransient.hxx>
#include <Handle_Standard_Transient.hxx>
#include <TCollection_HArray1.lxx>

Data Structures

class  HLRBRep_PolyAlgo
 A framework to compute the shape as seen in
a projection plane. This is done by calculating
the visible and the hidden parts of the shape.
HLRBRep_PolyAlgo works with three types of entity:

  • shapes to be visualized (these shapes must
    have already been triangulated.)
  • edges in these shapes (these edges are
    defined as polygonal lines on the
    triangulation of the shape, and are the basic
    entities which will be visualized or hidden), and
  • triangles in these shapes which hide the edges.
    HLRBRep_PolyAlgo is based on the principle
    of comparing each edge of the shape to be
    visualized with each of the triangles produced
    by the triangulation of the shape, and
    calculating the visible and the hidden parts of each edge.
    For a given projection, HLRBRep_PolyAlgo
    calculates a set of lines characteristic of the
    object being represented. It is also used in
    conjunction with the HLRBRep_PolyHLRToShape extraction
    utilities, which reconstruct a new, simplified
    shape from a selection of calculation results.
    This new shape is made up of edges, which
    represent the shape visualized in the projection.
    HLRBRep_PolyAlgo works with a polyhedral
    simplification of the shape whereas
    HLRBRep_Algo takes the shape itself into
    account. When you use HLRBRep_Algo, you
    obtain an exact result, whereas, when you use
    HLRBRep_PolyAlgo, you reduce computation
    time but obtain polygonal segments.
    An HLRBRep_PolyAlgo object provides a framework for:
  • defining the point of view
  • identifying the shape or shapes to be visualized
  • calculating the outlines
  • calculating the visible and hidden lines of the shape.
    Warning
  • Superimposed lines are not eliminated by this algorithm.
  • There must be no unfinished objects inside the shape you wish to visualize.
  • Points are not treated.
  • Note that this is not the sort of algorithm
    used in generating shading, which calculates
    the visible and hidden parts of each face in a
    shape to be visualized by comparing each
    face in the shape with every other face in the same shape.
More...
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 10:39:53 2011 for Open CASCADE Technology by  doxygen 1.6.3