Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GeoModelDev
GeoModel
Merge requests
!245
GeoShapes -- Minor class & method clean up
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
GeoShapes -- Minor class & method clean up
ShapeCleanUpVol2
into
main
Overview
0
Commits
1
Pipelines
2
Changes
9
Merged
Johannes Junggeburth
requested to merge
ShapeCleanUpVol2
into
main
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
9
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
326400c5
1 commit,
1 year ago
9 files
+
116
−
215
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
GeoModelCore/GeoModelKernel/GeoModelKernel/GeoFacet.h
+
24
−
40
Options
@@ -18,31 +18,34 @@
#include
"GeoModelKernel/GeoDefinitions.h"
#include
<vector>
typedef
GeoTrf
::
Vector3D
GeoFacetVertex
;
using
GeoFacetVertex
=
GeoTrf
::
Vector3D
;
// ** Base class
class
GeoFacet
:
public
RCBase
{
public:
enum
GeoFacetVertexType
{
enum
GeoFacetVertexType
{
ABSOLUTE
,
RELATIVE
};
inline
size_t
getNumberOfVertices
()
const
;
inline
GeoFacetVertex
getVertex
(
size_t
)
const
;
inline
GeoFacetVertexType
getVertexType
()
const
;
inline
size_t
getNumberOfVertices
()
const
{
return
m_nVertices
;
}
inline
GeoFacetVertex
getVertex
(
size_t
index
)
const
{
return
(
index
<
m_nVertices
?
m_vertices
[
index
]
:
GeoFacetVertex
(
999999.
,
999999.
,
999999.
));
}
inline
GeoFacetVertexType
getVertexType
()
const
{
return
m_vertexType
;
}
protected
:
GeoFacet
()
:
m_nVertices
(
0
),
m_vertexType
(
ABSOLUTE
)
{};
virtual
~
GeoFacet
(){};
GeoFacet
()
=
default
;
virtual
~
GeoFacet
()
=
default
;
size_t
m_nVertices
;
std
::
vector
<
GeoFacetVertex
>
m_vertices
;
GeoFacetVertexType
m_vertexType
;
size_t
m_nVertices
{
0
}
;
std
::
vector
<
GeoFacetVertex
>
m_vertices
{}
;
GeoFacetVertexType
m_vertexType
{
GeoFacetVertexType
::
ABSOLUTE
}
;
};
// Triangular facet
@@ -50,40 +53,21 @@ class GeoTriangularFacet : public GeoFacet
{
public:
GeoTriangularFacet
(
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertexType
);
,
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertexType
);
virtual
~
GeoTriangularFacet
();
virtual
~
GeoTriangularFacet
()
=
default
;
};
// Quadrangular facet
class
GeoQuadrangularFacet
:
public
GeoFacet
{
class
GeoQuadrangularFacet
:
public
GeoFacet
{
public:
GeoQuadrangularFacet
(
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertexType
);
GeoQuadrangularFacet
(
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertex
,
GeoFacetVertexType
);
virtual
~
GeoQuadrangularFacet
();
virtual
~
GeoQuadrangularFacet
()
=
default
;
};
// Inline methods
inline
size_t
GeoFacet
::
getNumberOfVertices
()
const
{
return
m_nVertices
;
}
inline
GeoFacetVertex
GeoFacet
::
getVertex
(
size_t
index
)
const
{
return
(
index
<
m_nVertices
?
m_vertices
[
index
]
:
GeoFacetVertex
(
999999.
,
999999.
,
999999.
));
}
inline
GeoFacet
::
GeoFacetVertexType
GeoFacet
::
getVertexType
()
const
{
return
m_vertexType
;
}
#endif
Loading