CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FMMeshSew.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
25
26#ifndef __OD_FM_MESHSEW__
27#define __OD_FM_MESHSEW__
28
29#include "FMGeometry.h"
30#include "Ge/GeDoubleArray.h"
31#include "Si/SiSpatialIndex.h"
33#include "OdLinkedArray.h"
34
35namespace FacetModeler
36{
37
39{
40public:
42 int index;
43
44 void set(const OdGePoint3d* _pt, int _index) { pt = _pt; index = _index; }
45
47 {
48 extents.set(*pt, *pt);
49 return true;
50 }
51};
52
54{
55public:
60
61 void set(const OdGePoint3d* _pt1, const OdGePoint3d* _pt2, int iTr, int iEd) { pt1 = _pt1; pt2 = _pt2; indexTr = iTr; indexEdge = iEd; }
62
64 {
65 extents.set(*pt1, *pt1);
66 extents.addPoint(*pt2);
67 return true;
68 }
69};
70
72{
73public:
74 TrMeshSew(GeMesh::OdGeTrMesh* pMesh, double tol = 1e-3);
77 void sewEdges();
78
79public:
85
86 double tolSew;
87};
88
89}
90
91#endif // __OD_FM_MESHSEW__
tol
Definition: DimVarDefs.h:2287
GeMesh::OdGeTrMesh * m_pMesh
Definition: FMMeshSew.h:80
OdLinkedArray< TrEdge > m_aEdgeSI
Definition: FMMeshSew.h:82
TrMeshSew(GeMesh::OdGeTrMesh *pMesh, double tol=1e-3)
OdSiSpatialIndexPtr m_pSpatialIndexEdge
Definition: FMMeshSew.h:84
OdSiSpatialIndexPtr m_pSpatialIndexVx
Definition: FMMeshSew.h:83
OdLinkedArray< TrVertex > m_aVertexSI
Definition: FMMeshSew.h:81
GLuint index
Definition: gles2_ext.h:265
void set(const OdGePoint3d *_pt1, const OdGePoint3d *_pt2, int iTr, int iEd)
Definition: FMMeshSew.h:61
const OdGePoint3d * pt1
Definition: FMMeshSew.h:56
const OdGePoint3d * pt2
Definition: FMMeshSew.h:57
bool extents(OdGeExtents3d &extents) const
Definition: FMMeshSew.h:63
const OdGePoint3d * pt
Definition: FMMeshSew.h:41
void set(const OdGePoint3d *_pt, int _index)
Definition: FMMeshSew.h:44
bool extents(OdGeExtents3d &extents) const
Definition: FMMeshSew.h:46