How to use HLRBRep_ListIteratorOfListOfBPoint

 HLRBRep_ListIteratorOfListOfBPoint


Introduction

HLRBRep class in Open CASCADE Technology (OCCT) is used to represent the half-line representation (HLR) of a BRep model. This is a technique used for hidden line removal in 3D graphics. It works by computing the visible edges of a 3D model from a given viewpoint and discarding the edges that are not visible.

HLRBRep_ListIteratorOfListOfBPoint is used to iterate over a list of 2D points consisting of HLRBRep_ListOfBPoint objects.

Example

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

#include <HLRBRep_ListOfBPoint.hxx>
#include <HLRBRep_ListIteratorOfListOfBPoint.hxx>

// list of HLRBRep_BiPoint objects
HLRBRep_ListOfBPoint  list;
// initialize the iterator
HLRBRep_ListIteratorOfListOfBPoint itr(list);
for (; itr.More(); itr.Next())
{
    HLRBRep_BiPoint pnt = itr.Value(); // value
}

Post a Comment

Previous Post Next Post