Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
4d6d41c7
Commit
4d6d41c7
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
6d60b9eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/meshGRegionBoundaryRecovery.cpp
+10
-19
10 additions, 19 deletions
Mesh/meshGRegionBoundaryRecovery.cpp
with
10 additions
and
19 deletions
Mesh/meshGRegionBoundaryRecovery.cpp
+
10
−
19
View file @
4d6d41c7
...
...
@@ -15,6 +15,7 @@
#include
"MLine.h"
#include
"MTriangle.h"
#include
"MTetrahedron.h"
#include
"Context.h"
#include
"OS.h"
namespace
tetgenBR
...
...
@@ -22,43 +23,31 @@ namespace tetgenBR
#define REAL double
// dummy tetgenio class
(not used)
// dummy tetgenio class
class
tetgenio
{
public:
int
firstnumber
;
int
numberofpointattributes
;
int
numberoftetrahedronattributes
;
int
numberofsegmentconstraints
;
REAL
*
segmentconstraintlist
;
int
numberoffacetconstraints
;
REAL
*
facetconstraintlist
;
int
numberofpoints
;
int
*
pointlist
;
int
*
pointattributelist
;
int
numberofpointmakers
;
int
*
pointmarkerlist
;
int
numberofpointmtrs
;
int
*
pointmtrlist
;
int
numberofedges
;
int
*
edgelist
;
int
*
edgemarkerlist
;
int
numberofholes
;
REAL
*
holelist
;
int
numberofregions
;
REAL
*
regionlist
;
int
mesh_dim
;
tetgenio
()
{
firstnumber
=
0
;
...
...
@@ -88,6 +77,7 @@ public:
// redefinition of predicates using our own
#define orient3d robustPredicates::orient3d
#define insphere robustPredicates::insphere
static
double
orient4d
(
double
*
,
double
*
,
double
*
,
double
*
,
double
*
,
double
,
double
,
double
,
double
,
double
){
return
0.
;
}
...
...
@@ -100,10 +90,12 @@ bool tetgenmesh::reconstructmesh(void *p)
in
=
new
tetgenio
();
b
=
new
tetgenbehavior
();
char
opt
[]
=
"pY"
;
b
->
parse_commandline
(
opt
);
char
opts
[
128
];
sprintf
(
opts
,
"Ype%sT%g"
,
(
Msg
::
GetVerbosity
()
<
3
)
?
"Q"
:
(
Msg
::
GetVerbosity
()
>
6
)
?
"V"
:
""
,
CTX
::
instance
()
->
mesh
.
toleranceInitialDelaunay
);
b
->
parse_commandline
(
opts
);
bool
returnValue
(
true
);
double
t_start
=
Cpu
();
std
::
vector
<
MVertex
*>
_vertices
;
...
...
@@ -816,10 +808,9 @@ bool tetgenmesh::reconstructmesh(void *p)
tetloop
.
tet
=
tetrahedrontraverse
();
}
}
// mesh output
if
(
returnValue
)
Msg
::
Info
(
"Reconstruct time : %g sec (mesh is Delaunay)"
,
Cpu
()
-
t_start
);
else
Msg
::
Info
(
"Reconstruct time : %g sec (mesh is not Delaunay)"
,
Cpu
()
-
t_start
);
return
returnValue
;
Msg
::
Info
(
"Reconstruct time : %g sec"
,
Cpu
()
-
t_start
);
return
true
;
}
// Dump the input surface mesh.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment