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

C++ wrapper for tpbrt_shape_curve_params_t. More...

#include <tinypbrt/detail/cpp/shape.hpp>

Public Types

using p_array_type = array< tpbrt_point3_t[4], point3 >
 Type used to read p value.
 
using n_array_type = array< tpbrt_normal_t[2], normal >
 Type used to read n value.
 

Public Member Functions

constexpr p_array_type p () const noexcept
 Returns p value.
 
constexpr n_array_type n () const noexcept
 Returns n value.
 
constexpr float_t width () const noexcept
 Returns width value.
 
constexpr opt_float width0 () const noexcept
 Returns width0 value.
 
constexpr opt_float width1 () const noexcept
 Returns width1 value.
 
constexpr uint_t split_depth () const noexcept
 Returns split_depth value.
 
constexpr shape_curve_basis basis () const noexcept
 Returns basis value.
 
constexpr shape_curve_degree degree () const noexcept
 Returns degree value.
 
constexpr shape_curve_type type () const noexcept
 Returns type value.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_shape_curve_params_t.

Member Typedef Documentation

◆ p_array_type

Type used to read p value.

◆ n_array_type

Type used to read n value.

Member Function Documentation

◆ p()

constexpr p_array_type tpbrt::shape_curve_params::p ( ) const
inlineconstexprnoexcept

Returns p value.

◆ n()

constexpr n_array_type tpbrt::shape_curve_params::n ( ) const
inlineconstexprnoexcept

Returns n value.

◆ width()

constexpr float_t tpbrt::shape_curve_params::width ( ) const
inlineconstexprnoexcept

Returns width value.

◆ width0()

constexpr opt_float tpbrt::shape_curve_params::width0 ( ) const
inlineconstexprnoexcept

Returns width0 value.

◆ width1()

constexpr opt_float tpbrt::shape_curve_params::width1 ( ) const
inlineconstexprnoexcept

Returns width1 value.

◆ split_depth()

constexpr uint_t tpbrt::shape_curve_params::split_depth ( ) const
inlineconstexprnoexcept

Returns split_depth value.

◆ basis()

constexpr shape_curve_basis tpbrt::shape_curve_params::basis ( ) const
inlineconstexprnoexcept

Returns basis value.

◆ degree()

constexpr shape_curve_degree tpbrt::shape_curve_params::degree ( ) const
inlineconstexprnoexcept

Returns degree value.

◆ type()

constexpr shape_curve_type tpbrt::shape_curve_params::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ reflect()

constexpr auto tpbrt::shape_curve_params::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


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