TTK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ttk::Icosphere Class Reference

#include <Icosphere.h>

Inheritance diagram for ttk::Icosphere:
ttk::Debug ttk::BaseClass ttkIcosphere ttkIcosphereFromObject ttkIcospheresFromPoints

Public Member Functions

 Icosphere ()
 
 ~Icosphere () override=default
 
int computeNumberOfVerticesAndTriangles (size_t &nVertices, size_t &nTriangles, const size_t nSubdivisions) const
 
template<typename DT , typename IT >
int translateIcosphere (DT *vertexCoords, IT *connectivityList, const size_t &icosphereIndex, const size_t &nVerticesPerIcosphere, const size_t &nTrianglesPerIcosphere, const DT *centers) const
 
template<typename DT , typename IT >
int computeIcosphere (DT *vertexCoords, IT *connectivityList, const size_t &nSubdivisions) const
 
template<typename DT , typename IT >
int computeIcospheres (DT *vertexCoords, IT *connectivityList, const size_t &nSpheres, const size_t &nSubdivisions, const DT &radius, const DT *center, DT *normals=nullptr) const
 
- Public Member Functions inherited from ttk::Debug
 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)
 
- Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()=default
 
int getThreadNumber () const
 
virtual int setThreadNumber (const int threadNumber)
 

Additional Inherited Members

- Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
 
int welcomeMsg (std::ostream &stream)
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

Author
Jonas Lukasczyk jl@jl.nosp@m.uk.d.nosp@m.e
Date
1.09.2019

This filter creates an Icosphere with a specified radius, center, and number of subdivisions.

Definition at line 21 of file Icosphere.h.

Constructor & Destructor Documentation

◆ Icosphere()

ttk::Icosphere::Icosphere ( )
inline

Definition at line 24 of file Icosphere.h.

◆ ~Icosphere()

ttk::Icosphere::~Icosphere ( )
overridedefault

Member Function Documentation

◆ computeIcosphere()

template<typename DT , typename IT >
int ttk::Icosphere::computeIcosphere ( DT *  vertexCoords,
IT *  connectivityList,
const size_t &  nSubdivisions 
) const

Computes an icosphere for a given subdivision level.

Definition at line 175 of file Icosphere.h.

◆ computeIcospheres()

template<typename DT , typename IT >
int ttk::Icosphere::computeIcospheres ( DT *  vertexCoords,
IT *  connectivityList,
const size_t &  nSpheres,
const size_t &  nSubdivisions,
const DT &  radius,
const DT *  center,
DT *  normals = nullptr 
) const

Computes an icosphere for a given subdivision level, radius, and center.

Definition at line 337 of file Icosphere.h.

◆ computeNumberOfVerticesAndTriangles()

int ttk::Icosphere::computeNumberOfVerticesAndTriangles ( size_t &  nVertices,
size_t &  nTriangles,
const size_t  nSubdivisions 
) const
inline

Efficiently computes for a given subdivision level the number of resulting vertices and triangles.

Definition at line 33 of file Icosphere.h.

◆ translateIcosphere()

template<typename DT , typename IT >
int ttk::Icosphere::translateIcosphere ( DT *  vertexCoords,
IT *  connectivityList,
const size_t &  icosphereIndex,
const size_t &  nVerticesPerIcosphere,
const size_t &  nTrianglesPerIcosphere,
const DT *  centers 
) const

Translates an icosphere

Definition at line 302 of file Icosphere.h.


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