Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plugin-PrimitivesGenerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
Plugin-PrimitivesGenerator
Commits
f619bfe2
Commit
f619bfe2
authored
Dec 28, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splitted OpenVolumemesh into separate type dir
parent
5f18c902
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
31 deletions
+13
-31
CMakeLists.txt
CMakeLists.txt
+3
-21
PrimitivesGenerator.cc
PrimitivesGenerator.cc
+6
-6
PrimitivesGenerator.hh
PrimitivesGenerator.hh
+3
-3
TetrahedralCuboidGenerator.cc
TetrahedralCuboidGenerator.cc
+1
-1
No files found.
CMakeLists.txt
View file @
f619bfe2
include
(
plugin
)
SET
(
CURRENT_PLUGIN_DEPS
""
)
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/ObjectTypes/PolyhedralMesh
)
add_definitions
(
-DENABLE_OPENVOLUMEMESH_SUPPORT
)
add_definitions
(
-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT
)
list
(
APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh
)
endif
()
if
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/ObjectTypes/HexahedralMesh
)
add_definitions
(
-DENABLE_OPENVOLUMEMESH_SUPPORT
)
add_definitions
(
-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT
)
list
(
APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh
)
endif
()
list
(
REMOVE_DUPLICATES CURRENT_PLUGIN_DEPS
)
openflipper_plugin
(
DEPS
${
CURRENT_PLUGIN_DEPS
}
INSTALLDATA Icons
openflipper_plugin
(
INSTALLDATA Icons
OPTDEPS OpenVolumeMesh
TYPES POLYMESH TRIANGLEMESH
OPT_TYPES BSPLINESURFACE BSPLINECURVE
)
OPT_TYPES BSPLINESURFACE BSPLINECURVE
HEXAHEDRALMESH POLYHEDRALMESH
)
PrimitivesGenerator.cc
View file @
f619bfe2
...
...
@@ -51,7 +51,7 @@
#include "PrimitivesGenerator.hh"
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
#include "TetrahedralCuboidGenerator.hh"
#endif
...
...
@@ -143,7 +143,7 @@ void PrimitivesGeneratorPlugin::initializePlugin()
QString
(
"Center position,Number of control points"
).
split
(
","
));
#endif
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
emit
setSlotDescription
(
"addTetrahedralCube(Vector,double)"
,
tr
(
"Generates a tetrahedral mesh of a cube (ObjectId is returned)"
),
QString
(
"Position,Length"
).
split
(
","
),
...
...
@@ -214,7 +214,7 @@ void PrimitivesGeneratorPlugin::pluginsInitialized() {
whatsThisGen
.
setWhatsThis
(
action
,
tr
(
"Create a random B-spline surface."
),
"B-spline surface"
);
#endif
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
action
=
primitivesMenu_
->
addAction
(
"Cube (Tetrahedral Mesh)"
,
this
,
SLOT
(
addTetrahedralCube
()));
action
->
setIcon
(
QIcon
(
OpenFlipper
::
Options
::
iconDirStr
()
+
OpenFlipper
::
Options
::
dirSeparator
()
+
"primitive_cube.png"
));
whatsThisGen
.
setWhatsThis
(
action
,
tr
(
"Create a Tetrahedral Cube."
),
"Cube"
);
...
...
@@ -256,7 +256,7 @@ int PrimitivesGeneratorPlugin::addPolyMesh() {
}
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
int
PrimitivesGeneratorPlugin
::
addPolyhedralMesh
()
{
int
objectId
=
-
1
;
...
...
@@ -382,7 +382,7 @@ int PrimitivesGeneratorPlugin::addTriangulatedCube(const Vector& _position,const
// Tetrahedral cube
//========================================================================
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
int
PrimitivesGeneratorPlugin
::
addTetrahedralCube
(
const
Vector
&
_position
,
const
double
_length
)
{
...
...
@@ -395,7 +395,7 @@ int PrimitivesGeneratorPlugin::addTetrahedralCube(const Vector& _position, const
// Tetrahedral Cuboid
//========================================================================
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
int
PrimitivesGeneratorPlugin
::
addTetrahedralCuboid
(
const
Vector
&
_position
,
const
Vector
&
_length
,
const
unsigned
int
n_x
,
const
unsigned
int
n_y
,
const
unsigned
int
n_z
)
...
...
PrimitivesGenerator.hh
View file @
f619bfe2
...
...
@@ -61,7 +61,7 @@
#include <ObjectTypes/TriangleMesh/TriangleMesh.hh>
#include <ObjectTypes/PolyMesh/PolyMesh.hh>
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
#include <ObjectTypes/PolyhedralMesh/PolyhedralMesh.hh>
#endif
...
...
@@ -160,7 +160,7 @@ public slots:
int
addRandomBSplineSurface
(
const
Vector
&
_position
=
Vector
(
0
,
0
,
0
),
int
nDiv
=
5
);
#endif
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
int
addTetrahedralCube
(
const
Vector
&
_position
=
Vector
(
0.0
,
0.0
,
0.0
),
const
double
_length
=
2.0
);
...
...
@@ -177,7 +177,7 @@ private:
// construct Octahedron in triMesh_
void
constructOctahedron
(
const
Vector
&
_position
,
const
double
_length
);
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
int
addPolyhedralMesh
();
#endif
...
...
TetrahedralCuboidGenerator.cc
View file @
f619bfe2
...
...
@@ -47,7 +47,7 @@
* *
\*===========================================================================*/
#ifdef ENABLE_
OPENVOLUMEMESH_POLYHEDRAL
_SUPPORT
#ifdef ENABLE_
POLYHEDRALMESH
_SUPPORT
#include "TetrahedralCuboidGenerator.hh"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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