neurolots  0.3.4
NeuroLOTs
nlgenerator::MeshGenerator Class Reference
+ Collaboration diagram for nlgenerator::MeshGenerator:

Static Public Member Functions

static NLGENERATOR_API nlgeometry::MeshPtr generateMesh (nsol::MorphologyPtr morphology_)
 Static method that return a mesh generated from the given morphology. More...
 
static NLGENERATOR_API nlgeometry::MeshPtr generateMesh (nsol::NeuronMorphologyPtr morphology_, float alphaRadius_, const std::vector< float > &alphaNeurites_)
 Static method that return a mesh generated from the given morphology changing some morphology params. More...
 
static NLGENERATOR_API nlgeometry::MeshPtr generateStructureMesh (nsol::MorphologyPtr morphology_, NodeIdToVertices &nodeIdToVertices_, Eigen::Vector3f color_=Eigen::Vector3f(0.0f, 0.0f, 0.0f), bool generateNodes_=false, float offset_=0.9f)
 Static method that return a structure mesh generated from the given morphology. More...
 
static NLGENERATOR_API void verticesToIndices (NodeIdToVertices &nodeIdToVertices_, NodeIdToVerticesIds &nodeIdToVerticesIds_)
 Static method that fill the node index to vertices indices structure. More...
 
static NLGENERATOR_API void conformBuffer (std::vector< unsigned int > &nodeIds_, NodeIdToVerticesIds &nodeIdToVerticesIds_, std::vector< float > &buffer_, Eigen::Vector3f value_)
 Static method that fills the buffer with the given value for the vertices related to the given node indices. More...
 

Static Protected Member Functions

static nlgeometry::MeshPtr _generateMorphology (nsol::MorphologyPtr morphology_)
 
static nlgeometry::MeshPtr _generateMophology (nsol::NeuronMorphologyPtr morphology_)
 
static std::unordered_map< nsol::NodePtr, JointNodePtr_vectorizeJoints (const nsol::Sections &sections_)
 
static void _vectorizeJoints (std::set< nsol::SectionPtr > &uniqueSections_, const nsol::SectionPtr &section_, std::unordered_map< nsol::NodePtr, JointNodePtr > &joints_)
 
static nlgeometry::Facets _meshSections (const nsol::Sections &sections_, std::unordered_map< nsol::NodePtr, JointNodePtr > &joints_)
 
static void _meshSections (std::set< nsol::SectionPtr > &uniqueSections_, const nsol::SectionPtr &section_, std::unordered_map< nsol::NodePtr, JointNodePtr > &joints_, nlgeometry::Facets &facets_)
 
static void _vectorizeSections (nlgeometry::MeshPtr mesh_, const nsol::SectionPtr section_, std::set< nsol::SectionPtr > &uniqueSections_, NodeIdToVertices &nodeIdToVertices_, Eigen::Vector3f color_, bool generateNodes_, float offset_)
 
static nlgeometry::Facets _generateCube (nsol::NodePtr node_, NodeIdToVertices &nodeIdToVertices_, Eigen::Vector3f color_, float offset_)
 

Detailed Description

Definition at line 45 of file MeshGenerator.h.

Member Function Documentation

static NLGENERATOR_API void nlgenerator::MeshGenerator::conformBuffer ( std::vector< unsigned int > &  nodeIds_,
NodeIdToVerticesIds &  nodeIdToVerticesIds_,
std::vector< float > &  buffer_,
Eigen::Vector3f  value_ 
)
static

Static method that fills the buffer with the given value for the vertices related to the given node indices.

Parameters
nodeIds_vector of morphology node indices
nodeIdToVerticesIds_output structure that keeps the relationship between morphology node index and mesh vertices indices
buffer_float buffer to fill
value_value to insert in the buffer
static NLGENERATOR_API nlgeometry::MeshPtr nlgenerator::MeshGenerator::generateMesh ( nsol::MorphologyPtr  morphology_)
static

Static method that return a mesh generated from the given morphology.

Parameters
moprholgy_to be reconstructed
Returns
a mesh generated from the given morphology
static NLGENERATOR_API nlgeometry::MeshPtr nlgenerator::MeshGenerator::generateMesh ( nsol::NeuronMorphologyPtr  morphology_,
float  alphaRadius_,
const std::vector< float > &  alphaNeurites_ 
)
static

Static method that return a mesh generated from the given morphology changing some morphology params.

Parameters
moprholgy_to be reconstructed
alphaRadius_param to change the morphology soma radius
alphaNeurites_param to change the distance of the morphology neurites with the morphology soma
Returns
a mesh generated from the given morphology
static NLGENERATOR_API nlgeometry::MeshPtr nlgenerator::MeshGenerator::generateStructureMesh ( nsol::MorphologyPtr  morphology_,
NodeIdToVertices &  nodeIdToVertices_,
Eigen::Vector3f  color_ = Eigen::Vector3f(0.0f, 0.0f, 0.0f),
bool  generateNodes_ = false,
float  offset_ = 0.9f 
)
static

Static method that return a structure mesh generated from the given morphology.

Parameters
moprholgy_to be reconstructed
nodeToVertices_structure that keeps the relationship between morphology nodes index and mesh vertices
Returns
a structure mesh generated from the given morphology
static NLGENERATOR_API void nlgenerator::MeshGenerator::verticesToIndices ( NodeIdToVertices &  nodeIdToVertices_,
NodeIdToVerticesIds &  nodeIdToVerticesIds_ 
)
static

Static method that fill the node index to vertices indices structure.

Parameters
nodeToVertices_input structure that keeps the relationship between morphology node index and mesh vertices
nodeIdToVerticesIds_output structure that keeps the relationship between morphology node index and mesh vertices indices

The documentation for this class was generated from the following file: