|
| | BarycentricSubdivision () |
| |
| void | preconditionTriangulation (AbstractTriangulation *const triangulation) |
| |
| SimplexId | getNumberOfVertices () const |
| | Return the number of vertices in the output triangulation.
|
| |
| SimplexId | getNumberOfTriangles () const |
| | Return the number of triangles in the output triangulation.
|
| |
| template<typename triangulationType > |
| int | execute (const triangulationType &inputTriangl, ExplicitTriangulation &outputTriangl) |
| |
| template<typename T , typename triangulationType > |
| int | interpolateContinuousScalarField (const T *data, T *output, const triangulationType &inputTriangl) const |
| | Interpolate floating-point point data on subdivised triangulation.
|
| |
| template<typename T > |
| int | interpolateDiscreteScalarField (const T *data, T *output) const |
| | Interpolate integer point data on subdivised triangulation.
|
| |
| template<typename T > |
| int | interpolateCellDataField (const T *data, T *output) const |
| | Interpolate cell data on subdivised triangulation.
|
| |
| | Debug () |
| |
| | ~Debug () override |
| |
| virtual int | setDebugLevel (const int &debugLevel) |
| |
| int | setWrapper (const Wrapper *wrapper) override |
| |
| int | printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| |
| int | printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const |
| |
| int | printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const |
| |
| int | printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
| |
| int | printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const |
| |
| void | setDebugMsgPrefix (const std::string &prefix) |
| |
| | BaseClass () |
| |
| virtual | ~BaseClass ()=default |
| |
| int | getThreadNumber () const |
| |
| virtual int | setThreadNumber (const int threadNumber) |
| |
Subdivise a triangulation according to triangle barycenter.
- Author
- Pierre Guillou (pierr.nosp@m.e.gu.nosp@m.illou.nosp@m.@lip.nosp@m.6.fr)
- Date
- July 2019
BarycentricSubdivision generates a new, finer triangulation from an input triangulation. Every triangle is divided in six new triangles using the 3 edges middles and the triangle barycenter.
Scalar data on vertices (point data) with continuous values (float/double) can be interpolated on the new triangulation. Scalar data on input triangles can be replicated on the new triangles.
- See also
- ttk::Triangulation
-
ttkBarycentricSubdivision.cpp for a usage example.
Definition at line 31 of file BarycentricSubdivision.h.
template<typename T , typename triangulationType >
| int ttk::BarycentricSubdivision::interpolateContinuousScalarField |
( |
const T * |
data, |
|
|
T * |
output, |
|
|
const triangulationType & |
inputTriangl |
|
) |
| const |
|
inline |
Interpolate floating-point point data on subdivised triangulation.
Copy values on parent vertices, interpolate on edges and barycenters
- Parameters
-
| [in] | data | Pointer to input data on parent triangulation |
| [out] | output | Allocated buffer to be filled |
| [in] | inputTriangl | Input triangulation object |
- Returns
- 0 in case of success
Definition at line 80 of file BarycentricSubdivision.h.