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

Sphere shape parameters. More...

#include <tinypbrt/detail/shape.h>

Data Fields

tpbrt_float_t radius
 The sphere's radius.
 
tpbrt_float_t z_min
 The height of the lower clipping plane along the z axis.
 
tpbrt_float_t z_max
 The height of the upper clipping plane along the z axis.
 
tpbrt_float_t phi_max
 The maximum extent of the sphere in phi (in spherical coordinates).
 

Detailed Description

Sphere shape parameters.

Examples
examples/export_obj/main.c.

Field Documentation

◆ radius

tpbrt_float_t tpbrt_shape_sphere_params_t::radius

The sphere's radius.

Examples
examples/export_obj/main.c, and examples/quickstart/main.c.

◆ z_min

tpbrt_float_t tpbrt_shape_sphere_params_t::z_min

The height of the lower clipping plane along the z axis.

◆ z_max

tpbrt_float_t tpbrt_shape_sphere_params_t::z_max

The height of the upper clipping plane along the z axis.

◆ phi_max

tpbrt_float_t tpbrt_shape_sphere_params_t::phi_max

The maximum extent of the sphere in phi (in spherical coordinates).


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