CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FMMdlVertex.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#ifndef __FMMDL_VERTEX_H__
25#define __FMMDL_VERTEX_H__
26
27#include "Modeler/FMMdlEntity.h"
28
29namespace FacetModeler
30{
31
32 class VertexSurfData;
33
38 {
39 public:
46 Vertex(const OdGePoint3d& ptPoint, Body* pBody);
47
53 const OdGePoint3d& point() const;
54
60 Vertex* prev() const;
61
67 Vertex* next() const;
68
74 void setPoint(const OdGePoint3d& ptPoint);
75
81 void addNext(Vertex* pNext);
82
89 void set(Vertex* pPrev, Vertex* pNext);
90
96 void setNext(Vertex* pNext);
97
103 void setPrev(Vertex* pPrev);
104
111 bool at(const Surface* pSurface) const;
112
119 void normal(const Face& atF, OdGeVector3d& normal) const;
120
126 void addSurfaceData(Surface* pSurface);
127
133 void removeSurfaceData(Surface* pSurface);
134
139
140 private:
144 Vertex();
145
149 Vertex(const Vertex&);
150
158 Vertex& operator=(const Vertex& other);
159
167 Vertex* clone(Body& to) const;
168
169 OdGePoint3d m_pt; // Point coordinates.
170
171 Vertex* m_pPrev; // Previous vertex pointer.
172 Vertex* m_pNext; // Next vertex pointer.
173 VertexSurfData* m_pSurfData; // Vertex Surface data.
174
175 //DOM-IGNORE-BEGIN
176 friend class Body;
177 friend class BodyImpl;
178 friend class BodyCustom;
179 //DOM-IGNORE-END
180 };
181
182}
183
184#endif //__FMMDL_VERTEX_H__
#define FMGEOMETRY_API
void removeSurfaceData(Surface *pSurface)
void setPrev(Vertex *pPrev)
void addNext(Vertex *pNext)
void setNext(Vertex *pNext)
Vertex(const OdGePoint3d &ptPoint, Body *pBody)
void normal(const Face &atF, OdGeVector3d &normal) const
void setPoint(const OdGePoint3d &ptPoint)
Vertex * next() const
void addSurfaceData(Surface *pSurface)
Vertex * prev() const
void set(Vertex *pPrev, Vertex *pNext)
const OdGePoint3d & point() const
bool at(const Surface *pSurface) const