QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_brep_tools.cpp File Reference
#include "opennurbs.h"

Typedefs

typedef int srf_face[2]
 

Functions

static ON_BOOL32 AddC3Curve (const ON_Curve *c3, ON_SimpleArray< ON_Curve * > &C3)
 
static bool CheckForMatchingVertexIndices (int i, int j, int corner_vi[4])
 
static void CreateNewTrimList (const ON_BrepLoop &L0, int tid0, const ON_BrepLoop &L1, int tid1, ON_SimpleArray< int > &new_tids)
 
static const ON_BrepEdgeFindLinearEdge (const ON_Brep &brep, int vi0, int vi1)
 
static bool FoundSlitPair (ON_BrepLoop &L, int *t0, int *t1)
 
static bool IsSlitTrim (const ON_BrepTrim &T)
 
static int MergeAdjacentEdge (ON_Brep &B, int eid)
 
ON_BrepON_BrepBox (const ON_3dPoint *box_corners, ON_Brep *pBrep)
 
ON_BrepON_BrepCone (const ON_Cone &cone, ON_BOOL32 bCapBase, ON_Brep *pBrep)
 
ON_BrepON_BrepCylinder (const ON_Cylinder &cylinder, ON_BOOL32 bCapBottom, ON_BOOL32 bCapTop, ON_Brep *pBrep)
 
ON_BrepON_BrepFromMesh (const ON_MeshTopology &mesh_topology, ON_BOOL32 bTrimmedTriangles, ON_Brep *pBrep)
 
void ON_BrepMergeAllEdges (ON_Brep &B)
 
bool ON_BrepMergeFaces (ON_Brep &B)
 
int ON_BrepMergeFaces (ON_Brep &B, int fid0, int fid1)
 
bool ON_BrepRemoveSlits (ON_BrepFace &F)
 
static bool ON_BrepRemoveSlits (ON_BrepLoop &L)
 
ON_BrepON_BrepRevSurface (ON_RevSurface *&pRevSurface, ON_BOOL32 bCapStart, ON_BOOL32 bCapEnd, ON_Brep *pBrep)
 
ON_BrepON_BrepSphere (const ON_Sphere &sphere, ON_Brep *pBrep)
 
ON_BrepON_BrepTorus (const ON_Torus &torus, ON_Brep *pBrep)
 
ON_BrepON_BrepTrimmedPlane (const ON_Plane &plane, const ON_Curve &boundary, ON_Brep *pBrep)
 
ON_BrepON_BrepTrimmedPlane (const ON_Plane &plane, ON_SimpleArray< ON_Curve * > &boundary, ON_BOOL32 bDuplicateCurves, ON_Brep *pBrep)
 
ON_BrepON_BrepWedge (const ON_3dPoint *corners, ON_Brep *pBrep)
 
static int sfsort (const srf_face *a, const srf_face *b)
 
static void SynchFaceOrientation (ON_Brep &brep, int fi)
 

Typedef Documentation

◆ srf_face

typedef int srf_face[2]

Function Documentation

◆ AddC3Curve()

static ON_BOOL32 AddC3Curve ( const ON_Curve * c3,
ON_SimpleArray< ON_Curve * > & C3 )
static

◆ CheckForMatchingVertexIndices()

static bool CheckForMatchingVertexIndices ( int i,
int j,
int corner_vi[4] )
static

◆ CreateNewTrimList()

static void CreateNewTrimList ( const ON_BrepLoop & L0,
int tid0,
const ON_BrepLoop & L1,
int tid1,
ON_SimpleArray< int > & new_tids )
static

◆ FindLinearEdge()

static const ON_BrepEdge * FindLinearEdge ( const ON_Brep & brep,
int vi0,
int vi1 )
static

◆ FoundSlitPair()

static bool FoundSlitPair ( ON_BrepLoop & L,
int * t0,
int * t1 )
static

◆ IsSlitTrim()

static bool IsSlitTrim ( const ON_BrepTrim & T)
static

◆ MergeAdjacentEdge()

static int MergeAdjacentEdge ( ON_Brep & B,
int eid )
static

◆ ON_BrepBox()

ON_Brep * ON_BrepBox ( const ON_3dPoint * box_corners,
ON_Brep * pBrep )

◆ ON_BrepCone()

ON_Brep * ON_BrepCone ( const ON_Cone & cone,
ON_BOOL32 bCapBase,
ON_Brep * pBrep )

◆ ON_BrepCylinder()

ON_Brep * ON_BrepCylinder ( const ON_Cylinder & cylinder,
ON_BOOL32 bCapBottom,
ON_BOOL32 bCapTop,
ON_Brep * pBrep )

◆ ON_BrepFromMesh()

ON_Brep * ON_BrepFromMesh ( const ON_MeshTopology & mesh_topology,
ON_BOOL32 bTrimmedTriangles,
ON_Brep * pBrep )

◆ ON_BrepMergeAllEdges()

void ON_BrepMergeAllEdges ( ON_Brep & B)

◆ ON_BrepMergeFaces() [1/2]

bool ON_BrepMergeFaces ( ON_Brep & B)

◆ ON_BrepMergeFaces() [2/2]

int ON_BrepMergeFaces ( ON_Brep & B,
int fid0,
int fid1 )

◆ ON_BrepRemoveSlits() [1/2]

bool ON_BrepRemoveSlits ( ON_BrepFace & F)

◆ ON_BrepRemoveSlits() [2/2]

static bool ON_BrepRemoveSlits ( ON_BrepLoop & L)
static

◆ ON_BrepRevSurface()

ON_Brep * ON_BrepRevSurface ( ON_RevSurface *& pRevSurface,
ON_BOOL32 bCapStart,
ON_BOOL32 bCapEnd,
ON_Brep * pBrep )

◆ ON_BrepSphere()

ON_Brep * ON_BrepSphere ( const ON_Sphere & sphere,
ON_Brep * pBrep )

◆ ON_BrepTorus()

ON_Brep * ON_BrepTorus ( const ON_Torus & torus,
ON_Brep * pBrep )

◆ ON_BrepTrimmedPlane() [1/2]

ON_Brep * ON_BrepTrimmedPlane ( const ON_Plane & plane,
const ON_Curve & boundary,
ON_Brep * pBrep )

◆ ON_BrepTrimmedPlane() [2/2]

ON_Brep * ON_BrepTrimmedPlane ( const ON_Plane & plane,
ON_SimpleArray< ON_Curve * > & boundary,
ON_BOOL32 bDuplicateCurves,
ON_Brep * pBrep )

◆ ON_BrepWedge()

ON_Brep * ON_BrepWedge ( const ON_3dPoint * corners,
ON_Brep * pBrep )

◆ sfsort()

static int sfsort ( const srf_face * a,
const srf_face * b )
static

◆ SynchFaceOrientation()

static void SynchFaceOrientation ( ON_Brep & brep,
int fi )
static