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

Data Structures

struct  tpbrt_shape_bilinear_mesh_params_t
 Bilinear mesh parameters. More...
 
struct  tpbrt_shape_curve_params_t
 Curve shape parameters. More...
 
struct  tpbrt_shape_cylinder_params_t
 Cylinder shape parameters. More...
 
struct  tpbrt_shape_disk_params_t
 Disk shape parameters. More...
 
struct  tpbrt_shape_sphere_params_t
 Sphere shape parameters. More...
 
struct  tpbrt_shape_triangle_mesh_params_t
 Triangle mesh parameters. More...
 
struct  tpbrt_shape_ply_mesh_params_t
 Ply file mesh parameters. More...
 
struct  tpbrt_shape_loop_subdiv_params_t
 Loop subdiv parameters. More...
 
struct  tpbrt_shape_t
 PBRT shape representation. More...
 
struct  tpbrt_shapes_list_t
 List of shapes. More...
 

Enumerations

enum  tpbrt_shape_type_t {
  TPBRT_SHAPE_TYPE_BILINEAR_MESH = 0 , TPBRT_SHAPE_TYPE_CURVE = 1 , TPBRT_SHAPE_TYPE_CYLINDER = 2 , TPBRT_SHAPE_TYPE_DISK = 3 ,
  TPBRT_SHAPE_TYPE_SPHERE = 4 , TPBRT_SHAPE_TYPE_TRIANGLE_MESH = 5 , TPBRT_SHAPE_TYPE_PLY_MESH = 6 , TPBRT_SHAPE_TYPE_LOOP_SUBDIV = 7 ,
  TPBRT_SHAPE_TYPE_MAX_NUM = 8
}
 Shape types. More...
 
enum  tpbrt_shape_curve_basis_t { TPBRT_SHAPE_CURVE_BASIS_BEZIER = 0 , TPBRT_SHAPE_CURVE_BASIS_BSPLINE = 1 , TPBRT_SHAPE_CURVE_BASIS_MAX_NUM = 2 }
 Curve shape basis. More...
 
enum  tpbrt_shape_curve_degree_t { TPBRT_SHAPE_CURVE_DEGREE_2 = 2 , TPBRT_SHAPE_CURVE_DEGREE_3 = 3 }
 Curve shape degree. More...
 
enum  tpbrt_shape_curve_type_t { TPBRT_SHAPE_CURVE_TYPE_FLAT = 0 , TPBRT_SHAPE_CURVE_TYPE_CYLINDER = 1 , TPBRT_SHAPE_CURVE_TYPE_RIBBON = 2 , TPBRT_SHAPE_CURVE_TYPE_MAX_NUM = 3 }
 Curve shape type. More...
 

Detailed Description

Enumeration Type Documentation

◆ tpbrt_shape_type_t

Shape types.

Enumerator
TPBRT_SHAPE_TYPE_BILINEAR_MESH 

Bilinear mesh.

TPBRT_SHAPE_TYPE_CURVE 

Curve.

TPBRT_SHAPE_TYPE_CYLINDER 

Cylinder.

TPBRT_SHAPE_TYPE_DISK 

Disk.

TPBRT_SHAPE_TYPE_SPHERE 

Sphere.

TPBRT_SHAPE_TYPE_TRIANGLE_MESH 

Triangle mesh.

TPBRT_SHAPE_TYPE_PLY_MESH 

Ply file mesh.

TPBRT_SHAPE_TYPE_LOOP_SUBDIV 

Loop subdivision.

TPBRT_SHAPE_TYPE_MAX_NUM 

Count of available shape types.

◆ tpbrt_shape_curve_basis_t

Curve shape basis.

Enumerator
TPBRT_SHAPE_CURVE_BASIS_BEZIER 

Bezier curve.

TPBRT_SHAPE_CURVE_BASIS_BSPLINE 

BSpline curve.

TPBRT_SHAPE_CURVE_BASIS_MAX_NUM 

Count of available curve shape basis.

◆ tpbrt_shape_curve_degree_t

Curve shape degree.

Enumerator
TPBRT_SHAPE_CURVE_DEGREE_2 

2 Degree.

TPBRT_SHAPE_CURVE_DEGREE_3 

3 Degree.

◆ tpbrt_shape_curve_type_t

Curve shape type.

Enumerator
TPBRT_SHAPE_CURVE_TYPE_FLAT 

Curve is always oriented to face the incident ray.

TPBRT_SHAPE_CURVE_TYPE_CYLINDER 

Alternative includes a shading normal that causes the curve to appear to have a cylindrical cross section.

TPBRT_SHAPE_CURVE_TYPE_RIBBON 

Curve has a fixed orientation.

TPBRT_SHAPE_CURVE_TYPE_MAX_NUM 

Count of available curve types.