libsurf
Programmer's Documentation

Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
TopoIsecSegment Class Reference

Detailed Description

Intersection segment.

Representation of a straight intersection segment compatible with class Topology.

See Also
Topology

#include <topoisecsegment.h>

Public Member Functions

 TopoIsecSegment ()
 create undefined segment
 
 TopoIsecSegment (uint fa, uint fb, const IndexPairArray &pairs, const PointList< 3 > &pts, uint ip)
 initialize from intersection results
 
void uvMap (const Topology &topo)
 compute (u,v) space coordinates for segment end points
 
const Vct3 & psource () const
 access source point
 
const Vct3 & ptarget () const
 access target point
 
const Vct2 & asource () const
 (u,v) source on a
 
const Vct2 & atarget () const
 (u,v) target on a
 
const Vct2 & bsource () const
 (u,v) source on b
 
const Vct2 & btarget () const
 (u,v) target on b
 
void assign (uint si, uint ti)
 assign vertex indices
 
uint source () const
 access source vertex index
 
uint target () const
 access source vertex index
 
uint opposed (uint k) const
 the other vertex of this
 
uint aface () const
 access face index
 
uint bface () const
 access face index
 
IndexPair facePair () const
 return pair of faces on which this intersection lies
 
bool onFaces (const IndexPair &pair) const
 test whether this is an intersection of faces (a,b)
 
bool enchain (std::deque< uint > &chain) const
 continue construction of a chain
 

Static Public Member Functions

static void append (uint fa, uint fb, const IndexPairArray &pairs, const PointList< 3 > &pts, TopoIsecArray &segm)
 utility interface for data generated by LasyIsecTree
 
static uint asLines (const TopoIsecArray &segm, MxMesh &mx)
 generate line representation for visualization
 

Private Attributes

Vct3 m_pts [2]
 raw intersection points
 
Vct2 m_uva [2]
 source and target point in (u,v) space of first face
 
Vct2 m_uvb [2]
 source and target point in (u,v) space of second face
 
uint m_pix [2]
 point indices (assigned after point merging)
 
uint m_tri [2]
 triangle indices
 
uint m_iface [2]
 face indices (referencing Topology)
 

The documentation for this class was generated from the following files:
Generated on Wed Jan 19 2022 03:03:19 for libsurf by   doxygen 1.8.5