Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Fiber::TangentialVectorsAndCurveParameter Struct Reference

Tangential vectors along a set of lines and the lengths of the lines. More...

#include <TangentialVectors.hpp>

Classes

struct  Exception
struct  NoEdges
struct  NoVertices
struct  NoVertexField
struct  NoEdgesAsVertices
struct  NoEdgePositions
struct  NoVertexFieldCreator
struct  NoVertexFieldData

Public Member Functions

void compute (const MemArray< 1, Eagle::point3 > &Vertices, const MemArray< 1, std::vector< index_t > > &EdgesArray, const MemBase::Creator_t &Crec=NullPtr())
 TangentialVectorsAndCurveParameter (const MemArray< 1, Eagle::point3 > &Vertices, const MemArray< 1, std::vector< index_t > > &EdgesArray)
 Compute tangential vectors along a set of lines and the lengths of the lines.
 TangentialVectorsAndCurveParameter (Grid &G, const string &TangentFieldName=TangentialVectorFieldName, const string &LengthFieldName=CurveParameterFieldName)
 Compute tangential vectors in a grid object, which is expected to have a set of lines defined.

Public Attributes

RefPtr< MemArray< 1, Eagle::tvector3 > > TangentialVectors
double max_len
RefPtr< MemArray< 1, double > > CurveParameter

Detailed Description

Tangential vectors along a set of lines and the lengths of the lines.

Constructor & Destructor Documentation

◆ TangentialVectorsAndCurveParameter()

Fiber::TangentialVectorsAndCurveParameter::TangentialVectorsAndCurveParameter ( Grid & G,
const string & TangentFieldName = TangentialVectorFieldName,
const string & LengthFieldName = CurveParameterFieldName )

Compute tangential vectors in a grid object, which is expected to have a set of lines defined.

Todo
Make use of timestamps of the involved fields

References Fiber::SkeletonMap::findVertices(), and Fiber::Grid::makeChart().