Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
05332c70
Commit
05332c70
authored
Oct 07, 2019
by
Max Lyon
Browse files
dllexport SmartHandles
parent
7c804ace
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/SmartHandles.hh
View file @
05332c70
...
...
@@ -47,6 +47,7 @@
#include
"Handles.hh"
#include
<OpenMesh/Core/Mesh/PolyConnectivity.hh>
#include
<OpenMesh/Core/System/OpenMeshDLLMacros.hh>
//== NAMESPACES ===============================================================
...
...
@@ -64,7 +65,7 @@ struct SmartFaceHandle;
//== CLASS DEFINITION =========================================================
/// Base class for all smart handle types
class
SmartBaseHandle
class
OPENMESHDLLEXPORT
SmartBaseHandle
{
public:
explicit
SmartBaseHandle
(
const
PolyConnectivity
*
_mesh
=
nullptr
)
:
mesh_
(
_mesh
)
{}
...
...
@@ -80,7 +81,7 @@ private:
};
/// Smart version of VertexHandle contains a pointer to the corresponding mesh and allows easier access to navigation methods
struct
SmartVertexHandle
:
public
SmartBaseHandle
,
VertexHandle
struct
OPENMESHDLLEXPORT
SmartVertexHandle
:
public
SmartBaseHandle
,
VertexHandle
{
explicit
SmartVertexHandle
(
int
_idx
=-
1
,
const
PolyConnectivity
*
_mesh
=
nullptr
)
:
SmartBaseHandle
(
_mesh
),
VertexHandle
(
_idx
)
{}
...
...
@@ -110,7 +111,7 @@ struct SmartVertexHandle : public SmartBaseHandle, VertexHandle
bool
is_manifold
()
const
;
};
struct
SmartHalfedgeHandle
:
public
SmartBaseHandle
,
HalfedgeHandle
struct
OPENMESHDLLEXPORT
SmartHalfedgeHandle
:
public
SmartBaseHandle
,
HalfedgeHandle
{
explicit
SmartHalfedgeHandle
(
int
_idx
=-
1
,
const
PolyConnectivity
*
_mesh
=
nullptr
)
:
SmartBaseHandle
(
_mesh
),
HalfedgeHandle
(
_idx
)
{}
...
...
@@ -131,7 +132,7 @@ struct SmartHalfedgeHandle : public SmartBaseHandle, HalfedgeHandle
bool
is_boundary
()
const
;
};
struct
SmartEdgeHandle
:
public
SmartBaseHandle
,
EdgeHandle
struct
OPENMESHDLLEXPORT
SmartEdgeHandle
:
public
SmartBaseHandle
,
EdgeHandle
{
explicit
SmartEdgeHandle
(
int
_idx
=-
1
,
const
PolyConnectivity
*
_mesh
=
nullptr
)
:
SmartBaseHandle
(
_mesh
),
EdgeHandle
(
_idx
)
{}
...
...
@@ -156,7 +157,7 @@ struct SmartEdgeHandle : public SmartBaseHandle, EdgeHandle
bool
is_boundary
()
const
;
};
struct
SmartFaceHandle
:
public
SmartBaseHandle
,
FaceHandle
struct
OPENMESHDLLEXPORT
SmartFaceHandle
:
public
SmartBaseHandle
,
FaceHandle
{
explicit
SmartFaceHandle
(
int
_idx
=-
1
,
const
PolyConnectivity
*
_mesh
=
nullptr
)
:
SmartBaseHandle
(
_mesh
),
FaceHandle
(
_idx
)
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment