|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Curve shape parameters. More...
#include <tinypbrt/detail/shape.h>
Data Fields | |
| tpbrt_point3_t | p [4] |
| Control points for the cubic Bezier spline that goes along the center of the curve shape. | |
| tpbrt_normal_t | n [2] |
| For "ribbon" curves, these normals are respectively used at endpoints of the curve to orient the surface there. Intermediate normals are interpolated using spherical linear interpolation. | |
| tpbrt_float_t | width |
| Width of the curve. | |
| tpbrt_opt_float_t | width0 |
| Width of the curve at the start point. If specified, these override the "width" parameter. | |
| tpbrt_opt_float_t | width1 |
| Width of the curve at the end point. If specified, these override the "width" parameter. | |
| tpbrt_uint_t | split_depth |
| Number of times the curve is split in half into sub-curves at startup time. Splitting curves increases memory use but can improve ray intersection performance, as the sub-curves generally have tighter bounding boxes than the entire curve extent. | |
| tpbrt_shape_curve_basis_t | basis: 3 |
| Curve spline basis. | |
| tpbrt_shape_curve_degree_t | degree: 3 |
| Degree of the curve's spline. | |
| tpbrt_shape_curve_type_t | type: 3 |
| Which curve variant is used. | |
Curve shape parameters.
| tpbrt_point3_t tpbrt_shape_curve_params_t::p[4] |
Control points for the cubic Bezier spline that goes along the center of the curve shape.
| tpbrt_normal_t tpbrt_shape_curve_params_t::n[2] |
For "ribbon" curves, these normals are respectively used at endpoints of the curve to orient the surface there. Intermediate normals are interpolated using spherical linear interpolation.
| tpbrt_float_t tpbrt_shape_curve_params_t::width |
Width of the curve.
| tpbrt_opt_float_t tpbrt_shape_curve_params_t::width0 |
Width of the curve at the start point. If specified, these override the "width" parameter.
| tpbrt_opt_float_t tpbrt_shape_curve_params_t::width1 |
Width of the curve at the end point. If specified, these override the "width" parameter.
| tpbrt_uint_t tpbrt_shape_curve_params_t::split_depth |
Number of times the curve is split in half into sub-curves at startup time. Splitting curves increases memory use but can improve ray intersection performance, as the sub-curves generally have tighter bounding boxes than the entire curve extent.
| tpbrt_shape_curve_basis_t tpbrt_shape_curve_params_t::basis |
Curve spline basis.
| tpbrt_shape_curve_degree_t tpbrt_shape_curve_params_t::degree |
Degree of the curve's spline.
| tpbrt_shape_curve_type_t tpbrt_shape_curve_params_t::type |
Which curve variant is used.