PolyFEM
Loading...
Searching...
No Matches
raster.cpp File Reference
#include "raster.hpp"
#include <igl/per_vertex_normals.h>
#include <iostream>
Include dependency graph for raster.cpp:

Go to the source code of this file.

Namespaces

namespace  polyfem
 
namespace  polyfem::renderer
 

Functions

std::vector< uint8_t > polyfem::renderer::render (const Eigen::MatrixXd &vertices, const Eigen::MatrixXi &faces, const Eigen::MatrixXi &faces_id, int width, int height, const Eigen::Vector3d &camera_position, const double camera_fov, const double camera_near, const double camera_far, const bool is_perspective, const Eigen::Vector3d &lookat, const Eigen::Vector3d &up, const Eigen::Vector3d &ambient_light, const std::vector< std::pair< Eigen::MatrixXd, Eigen::MatrixXd > > &lights, std::vector< Material > &materials)