Skip to content
Snippets Groups Projects
Commit 27262b07 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

added empty centerline field for compile

parent 46053600
Branches
Tags
No related merge requests found
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment