ImFusion C++ SDK 4.4.0
ImFusion::CustomFaceProperty< T > Class Template Reference

#include <ImFusion/Mesh/MeshCustomProperties.h>

A custom property using faces/triangles as geometry elements. More...

Inheritance diagram for ImFusion::CustomFaceProperty< T >:

Detailed Description

template<typename T>
class ImFusion::CustomFaceProperty< T >

A custom property using faces/triangles as geometry elements.

Public Member Functions

void clone (Mesh &otherMesh) const override
 Creates a property of the same type and storage name on another mesh, does not copy any data.
Public Member Functions inherited from ImFusion::CustomProperty< T >
CustomPropertyElement< T > & operator[] (size_t idx)
 Typed access to the property of vertex idx.
const CustomPropertyElement< T > & operator[] (size_t idx) const
CustomPropertyElementBaseelement (size_t idx) const override
 Untyped access to the property of vertex idx.
std::string name () const override
 Returns name that uniquely identifies the property on this mesh.

Additional Inherited Members

Protected Member Functions inherited from ImFusion::CustomProperty< T >
 CustomProperty (std::vector< CustomPropertyElement< T > > &data, const std::string &name)
Protected Member Functions inherited from ImFusion::Utils::NotCopyable
 NotCopyable (NotCopyable &&) noexcept=default
NotCopyable & operator= (NotCopyable &&) noexcept=default
 NotCopyable (const NotCopyable &)=delete
NotCopyable & operator= (const NotCopyable &)=delete
Protected Attributes inherited from ImFusion::CustomProperty< T >
CustomPropertyDescriptor< T > m_descriptor
std::vector< CustomPropertyElement< T > > & m_data

Member Function Documentation

◆ clone()

template<typename T>
void ImFusion::CustomFaceProperty< T >::clone ( Mesh & otherMesh) const
overridevirtual

Creates a property of the same type and storage name on another mesh, does not copy any data.

If the target mesh already had a property with matching type and name, it will connect to that one.

Implements ImFusion::CustomPropertyBase.


The documentation for this class was generated from the following files:
  • ImFusion/Mesh/Mesh.h
  • ImFusion/Mesh/MeshCustomProperties.h
Search Tab / S to search, Esc to close