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

PBRT shape representation. More...

#include <tinypbrt/detail/shape.h>

Data Fields

tpbrt_texture_handle_t alpha
 Handle to texture.
 
tpbrt_transform_animated_t transform
 Animated transform.
 
tpbrt_material_handle_t material
 Material handle.
 
tpbrt_area_light_handle_t area_light
 Area light handle.
 
tpbrt_media_handle_t interior_media_handle
 Interior media handle.
 
tpbrt_media_handle_t exterior_media_handle
 Exterior media handle.
 
tpbrt_shape_type_t type: 5
 Shape value type.
 
tpbrt_bool_t reverse_orientation: 1
 If true, shape orientation is reversed (inside becomes outside).
 
union { 
 
   tpbrt_shape_bilinear_mesh_params_t   bilinear_mesh 
 Bilinear mesh parameters. More...
 
   tpbrt_shape_curve_params_t   curve 
 Curve shape parameters. More...
 
   tpbrt_shape_cylinder_params_t   cylinder 
 Cylinder shape parameters. More...
 
   tpbrt_shape_disk_params_t   disk 
 Disk shape parameters. More...
 
   tpbrt_shape_sphere_params_t   sphere 
 Sphere shape parameters. More...
 
   tpbrt_shape_triangle_mesh_params_t   triangle_mesh 
 Triangle mesh parameters. More...
 
   tpbrt_shape_ply_mesh_params_t   ply_mesh 
 Ply mesh file parameters. More...
 
   tpbrt_shape_loop_subdiv_params_t   loop_subdiv 
 Loop subdiv parameters. More...
 
} as 
 Value dependent on type value.
 

Detailed Description

Field Documentation

◆ alpha

tpbrt_texture_handle_t tpbrt_shape_t::alpha

Handle to texture.

◆ transform

◆ material

◆ area_light

tpbrt_area_light_handle_t tpbrt_shape_t::area_light

Area light handle.

Examples
examples/lights/main.c, and examples/materials/main.c.

◆ interior_media_handle

tpbrt_media_handle_t tpbrt_shape_t::interior_media_handle

Interior media handle.

◆ exterior_media_handle

tpbrt_media_handle_t tpbrt_shape_t::exterior_media_handle

Exterior media handle.

◆ type

◆ reverse_orientation

tpbrt_bool_t tpbrt_shape_t::reverse_orientation

If true, shape orientation is reversed (inside becomes outside).

◆ bilinear_mesh

tpbrt_shape_bilinear_mesh_params_t tpbrt_shape_t::bilinear_mesh

Bilinear mesh parameters.

Examples
examples/export_obj/main.c.

◆ curve

tpbrt_shape_curve_params_t tpbrt_shape_t::curve

Curve shape parameters.

◆ cylinder

tpbrt_shape_cylinder_params_t tpbrt_shape_t::cylinder

Cylinder shape parameters.

Examples
examples/export_obj/main.c.

◆ disk

tpbrt_shape_disk_params_t tpbrt_shape_t::disk

Disk shape parameters.

Examples
examples/export_obj/main.c.

◆ sphere

tpbrt_shape_sphere_params_t tpbrt_shape_t::sphere

Sphere shape parameters.

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

◆ triangle_mesh

tpbrt_shape_triangle_mesh_params_t tpbrt_shape_t::triangle_mesh

Triangle mesh parameters.

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

◆ ply_mesh

tpbrt_shape_ply_mesh_params_t tpbrt_shape_t::ply_mesh

Ply mesh file parameters.

Examples
examples/export_obj/main.c.

◆ loop_subdiv

tpbrt_shape_loop_subdiv_params_t tpbrt_shape_t::loop_subdiv

Loop subdiv parameters.

◆ [union]

union { ... } tpbrt_shape_t::as

Value dependent on type value.

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

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