arsa  2.7
Public Member Functions | List of all members
irr::scene::SVertexPositionScaleAlongNormalsManipulator Class Reference

Vertex manipulator which scales the position of the vertex along the normals. More...

#include <SVertexManipulator.h>

Inheritance diagram for irr::scene::SVertexPositionScaleAlongNormalsManipulator:
irr::scene::IVertexManipulator

Public Member Functions

 SVertexPositionScaleAlongNormalsManipulator (const core::vector3df &factor)
 
template<typename VType >
void operator() (VType &vertex) const
 

Detailed Description

Vertex manipulator which scales the position of the vertex along the normals.

This can look more pleasing than the usual Scale operator, but depends on the mesh geometry.

Definition at line 238 of file SVertexManipulator.h.

Constructor & Destructor Documentation

◆ SVertexPositionScaleAlongNormalsManipulator()

irr::scene::SVertexPositionScaleAlongNormalsManipulator::SVertexPositionScaleAlongNormalsManipulator ( const core::vector3df factor)
inline

Definition at line 241 of file SVertexManipulator.h.

241 : Factor(factor) {}

Member Function Documentation

◆ operator()()

template<typename VType >
void irr::scene::SVertexPositionScaleAlongNormalsManipulator::operator() ( VType &  vertex) const
inline

Definition at line 243 of file SVertexManipulator.h.

244  {
245  vertex.Pos += vertex.Normal*Factor;
246  }

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