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

Bilinear mesh parameters. More...

#include <tinypbrt/detail/shape.h>

Data Fields

tpbrt_uint_array_t indices
 The array of integer offsets into the per-vertex data arrays (P, and any of N, S, or uv that are present.) Required, unless exactly four vertices are specified.
 
tpbrt_point3_array_t p
 The vertex positions of the bilinear mesh.
 
tpbrt_normal_array_t n
 Per-vertex normals. If present, shading normals will be computed from these values.
 
tpbrt_point2_array_t uv
 Per-vertex texture coordinates.
 

Detailed Description

Bilinear mesh parameters.

Examples
examples/export_obj/main.c.

Field Documentation

◆ indices

tpbrt_uint_array_t tpbrt_shape_bilinear_mesh_params_t::indices

The array of integer offsets into the per-vertex data arrays (P, and any of N, S, or uv that are present.) Required, unless exactly four vertices are specified.

Examples
examples/export_obj/main.c.

◆ p

tpbrt_point3_array_t tpbrt_shape_bilinear_mesh_params_t::p

The vertex positions of the bilinear mesh.

Examples
examples/export_obj/main.c.

◆ n

tpbrt_normal_array_t tpbrt_shape_bilinear_mesh_params_t::n

Per-vertex normals. If present, shading normals will be computed from these values.

◆ uv

tpbrt_point2_array_t tpbrt_shape_bilinear_mesh_params_t::uv

Per-vertex texture coordinates.


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