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

Go to the source code of this file.

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...
 

Macros

#define _TINYPBRT_SHAPE_H_
 

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...
 

Macro Definition Documentation

◆ _TINYPBRT_SHAPE_H_

#define _TINYPBRT_SHAPE_H_