How to use HLRTopoBRep_DataMapIteratorOfDataMapOfShapeFaceData

HLRTopoBRep_DataMapIteratorOfDataMapOfShapeFaceData


Introduction

HLRTopoBRep_DataMapIteratorOfDataMapOfShapeFaceData is used to iterate over a map of HLRTopoBRep_DataMapOfShapeFaceData which contains a relation between TopoDS_Shape and HLRTopoBRep_FaceData. 

HLRTopoBRep_FaceData consists of three shape lists; internal outLines, outLines on restriction and ISO lines.

  • Internal outlines

This consists of a list of wire shapes that defines the internal boundaries of the face. The internal boundary of a face is a set of wires that defines the holes or cutouts in a face (eg: circular hole). 

  • Outlines on restriction

This is a list of the wire shapes that define the boundary of the face on a restricted set of edges. The OutlinesOnRestriction shape list stores the wire shapes that define the boundary of the face on this subset of edges.

  • Iso Lines

This is a list of the curve shapes that define the isometric curves on the given face.

Example

Here is an example of how to use the HLRTopoBRep_DataMapIteratorOfDataMapOfShapeFaceData class.

#include <HLRTopoBRep_DataMapIteratorOfDataMapOfShapeFaceData.hxx>

// list of HLRTopoBRep_VData objects
HLRTopoBRep_DataMapOfShapeFaceData  map;
// initialize the iterator
HLRTopoBRep_DataMapIteratorOfDataMapOfShapeFaceData itr(map);
for (; itr.More(); itr.Next())
{
    const TopoDS_Shape shape = itr.Key();                    // key
    HLRTopoBRep_FaceData data = itr.Value();                 // value
    const TopTools_ListOfShape& intL = data.FaceIntL();  // internal outlines
    const TopTools_ListOfShape& outL = data.FaceOutL();  // outlines on restrictions
    const TopTools_ListOfShape& isoL = data.FaceIsoL();  // Iso lines
}

Post a Comment

Previous Post Next Post