Blender  V3.3
Public Member Functions | List of all members
Freestyle::Functions0D::MaterialF0D Class Reference

#include <Functions0D.h>

Inheritance diagram for Freestyle::Functions0D::MaterialF0D:
Freestyle::UnaryFunction0D< FrsMaterial >

Public Member Functions

string getName () const
 
int operator() (Interface0DIterator &iter)
 
- Public Member Functions inherited from Freestyle::UnaryFunction0D< FrsMaterial >
 UnaryFunction0D ()
 
virtual ~UnaryFunction0D ()
 

Additional Inherited Members

- Public Types inherited from Freestyle::UnaryFunction0D< FrsMaterial >
typedef FrsMaterial ReturnedValueType
 
- Public Attributes inherited from Freestyle::UnaryFunction0D< FrsMaterial >
FrsMaterial result
 
voidpy_uf0D
 

Detailed Description

Returns the material of the object evaluated at the Interface0D. This evaluation can be ambiguous (in the case of a TVertex for example. This functor tries to remove this ambiguity using the context offered by the 1D element to which the Interface0DIterator& belongs to and by arbitrary choosing the material of the face that lies on its left when following the 1D element if there are two different materials on each side of the point. However, there still can be problematic cases, and the user willing to deal with this cases in a specific way should implement its own getMaterial functor.

Definition at line 366 of file Functions0D.h.

Member Function Documentation

◆ getName()

string Freestyle::Functions0D::MaterialF0D::getName ( ) const
inlinevirtual

Returns the string "MaterialF0D"

Reimplemented from Freestyle::UnaryFunction0D< FrsMaterial >.

Definition at line 369 of file Functions0D.h.

◆ operator()()

int Freestyle::Functions0D::MaterialF0D::operator() ( Interface0DIterator iter)
virtual

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