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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
27262b07
Commit
27262b07
authored
13 years ago
by
Emilie Marchandise
Browse files
Options
Downloads
Patches
Plain Diff
added empty centerline field for compile
parent
46053600
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/CenterlineField.h
+34
-5
34 additions, 5 deletions
Mesh/CenterlineField.h
with
34 additions
and
5 deletions
Mesh/CenterlineField.h
+
34
−
5
View file @
27262b07
...
@@ -26,10 +26,6 @@ class discreteEdge;
...
@@ -26,10 +26,6 @@ class discreteEdge;
class
discreteFace
;
class
discreteFace
;
class
MElement
;
class
MElement
;
#if defined(HAVE_ANN)
#include
<ANN/ANN.h>
class
ANNkd_tree
;
// A branch of a 1D tree
// A branch of a 1D tree
struct
Branch
{
struct
Branch
{
int
tag
;
int
tag
;
...
@@ -42,6 +38,10 @@ struct Branch{
...
@@ -42,6 +38,10 @@ struct Branch{
double
maxRad
;
double
maxRad
;
};
};
#if defined(HAVE_ANN)
#include
<ANN/ANN.h>
class
ANNkd_tree
;
// This class takes as input A 1D mesh which is the centerline
// This class takes as input A 1D mesh which is the centerline
// of a tubular 2D surface mesh
// of a tubular 2D surface mesh
// It computes a mesh size field function of the distance to the centerlines
// It computes a mesh size field function of the distance to the centerlines
...
@@ -147,9 +147,38 @@ class Centerline : public Field{
...
@@ -147,9 +147,38 @@ class Centerline : public Field{
//Print for debugging
//Print for debugging
void
printSplit
()
const
;
void
printSplit
()
const
;
};
#else
class
Centerline
:
public
Field
{
public:
Centerline
(
std
::
string
fileName
);
Centerline
();
~
Centerline
();
virtual
bool
isotropic
()
const
{
return
false
;}
virtual
const
char
*
getName
()
{
return
"centerline Field"
;
}
virtual
std
::
string
getDescription
()
{
return
"The value of this field is the distance to the centerline.
\n\n
"
" You should specify a fileName that contains the centerline."
" The centerline of a surface can be obtained with the open source software vmtk (http://www.vmtk.org/)"
" using the following script:
\n\n
"
"vmtk vmtkcenterlines -seedselector openprofiles -ifile mysurface.stl -ofile centerlines.vtp --pipe vmtksurfacewriter -ifile centerlines.vtp -ofile centerlines.vtk
\n
"
;
}
void
cleanMesh
();
//isotropic operator for mesh size field function of distance to centerline
double
operator
()
(
double
x
,
double
y
,
double
z
,
GEntity
*
ge
=
0
);
//anisotropic operator
void
operator
()
(
double
x
,
double
y
,
double
z
,
SMetric3
&
metr
,
GEntity
*
ge
=
0
);
}
};
#endif
#endif
#endif
#endif
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