tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt_shape_ply_mesh_params_t Struct Reference

Ply file mesh parameters. More...

#include <tinypbrt/detail/shape.h>

Data Fields

tpbrt_string_t file_name
 File from which the PLY-format mesh is loaded. If the file name's extension is ".gz", the file will be decompressed from gzip format as it is read.
 
tpbrt_texture_handle_t displacement
 Specifies a texture used to displace the vertices of the mesh. The mesh will be adaptively tessellated so that all edges are below a specified length.
 
tpbrt_float_t edge_length
 Maximum length (in world space) of an edge of a triangle mesh that is being displaced. Edges are recursively split until shorter than this length.
 

Detailed Description

Ply file mesh parameters.

Field Documentation

◆ file_name

tpbrt_string_t tpbrt_shape_ply_mesh_params_t::file_name

File from which the PLY-format mesh is loaded. If the file name's extension is ".gz", the file will be decompressed from gzip format as it is read.

Examples
examples/export_obj/main.c.

◆ displacement

tpbrt_texture_handle_t tpbrt_shape_ply_mesh_params_t::displacement

Specifies a texture used to displace the vertices of the mesh. The mesh will be adaptively tessellated so that all edges are below a specified length.

◆ edge_length

tpbrt_float_t tpbrt_shape_ply_mesh_params_t::edge_length

Maximum length (in world space) of an edge of a triangle mesh that is being displaced. Edges are recursively split until shorter than this length.


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