libsurf
Programmer's Documentation

Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TTiConnection Class Reference

Detailed Description

Edge-edge connection between surfaces.

Assumptions:

See Also
MeshComponent

#include <tticonnection.h>

Collaboration diagram for TTiConnection:
[legend]

Classes

struct  ConVertex
 

Public Member Functions

 TTiConnection ()
 undefined connection
 
 TTiConnection (const MeshComponent *ac, const Vct2 &a1, const Vct2 &a2, const MeshComponent *bc, const Vct2 &b1, const Vct2 &b2)
 construct connection, general form
 
void vconnect (const MeshComponent *ac, const MeshComponent *bc, bool samesense=true)
 connect v=1 of a with v=0 of b
 
void uconnect (const MeshComponent *ac, const MeshComponent *bc, bool samesense=true)
 connect u=1 of a with u=0 of b
 
bool appendSegments (TTIntersector &tti)
 add intersection segments to intersector, requires sorted faces in tti
 

Private Types

typedef std::vector< ConVertexConVertexArray
 

Private Member Functions

bool collectCandidates (const MeshComponent *comp, const Vct2 &p1, const Vct2 &p2, Indices &edg)
 determine all edges of component which are on segment p1,p2
 
bool connectedPair (uint ae, uint be, Vct3 st[]) const
 test a pair of edges for possible connection
 
uint triangleFromEdge (const TTIntersector &tti, const MeshComponent *comp, uint eix) const
 find the intersector triangle index from boundary edge
 
uint triangleFromVertex (const TTIntersector &tti, const MeshComponent *comp, uint vix) const
 find the intersector triangle index from boundary vertex
 
uint nearestEdge (const MeshComponent *cmp, const Indices &edges, const Vct3 &p) const
 find the edge for which the foorpoint of p is nearest p
 

Private Attributes

const MeshComponentacomp
 connected components
 
const MeshComponentbcomp
 
Vct2 ap1
 connections are single linear segments
 
Vct2 ap2
 
Vct2 bp1
 
Vct2 bp2
 
ConVertexArray bvx
 connection vertices
 

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