PolyFEM
Loading...
Searching...
No Matches
polyfem::renderer::VertexAttributes Class Reference

#include <raster.hpp>

Collaboration diagram for polyfem::renderer::VertexAttributes:
[legend]

Public Member Functions

 VertexAttributes (double x=0, double y=0, double z=0, double w=1)
 

Static Public Member Functions

static VertexAttributes interpolate (const VertexAttributes &a, const VertexAttributes &b, const VertexAttributes &c, const double alpha, const double beta, const double gamma)
 

Public Attributes

Eigen::Vector4d position
 
Eigen::Vector3d normal
 
Eigen::Vector3d color
 
Material material
 

Detailed Description

Definition at line 19 of file raster.hpp.

Constructor & Destructor Documentation

◆ VertexAttributes()

polyfem::renderer::VertexAttributes::VertexAttributes ( double  x = 0,
double  y = 0,
double  z = 0,
double  w = 1 
)
inline

Definition at line 22 of file raster.hpp.

References position, x, y, and z.

Member Function Documentation

◆ interpolate()

static VertexAttributes polyfem::renderer::VertexAttributes::interpolate ( const VertexAttributes a,
const VertexAttributes b,
const VertexAttributes c,
const double  alpha,
const double  beta,
const double  gamma 
)
inlinestatic

Definition at line 27 of file raster.hpp.

References color, and position.

Member Data Documentation

◆ color

Eigen::Vector3d polyfem::renderer::VertexAttributes::color

Definition at line 43 of file raster.hpp.

Referenced by interpolate(), and polyfem::renderer::render().

◆ material

Material polyfem::renderer::VertexAttributes::material

Definition at line 44 of file raster.hpp.

Referenced by polyfem::renderer::render().

◆ normal

Eigen::Vector3d polyfem::renderer::VertexAttributes::normal

Definition at line 42 of file raster.hpp.

Referenced by polyfem::renderer::render().

◆ position

Eigen::Vector4d polyfem::renderer::VertexAttributes::position

Definition at line 41 of file raster.hpp.

Referenced by interpolate(), polyfem::renderer::render(), and VertexAttributes().


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