361 int corner,
float grid_u,
float grid_v,
float *r_quad_u,
float *r_quad_v);
385 std::array<T, 4> values;
386 values[0] = src[corner_verts[corner]];
406 std::array<T, 4> values;
407 values[0] = src[corner];
414 for (
int i = 0; i < face.
size(); i++) {
415 indices[i] = face.
first() + i;
constexpr int64_t first() const
constexpr int64_t size() const
constexpr Span slice(int64_t start, int64_t size) const
T mix_indices(const Span< T > src, const Span< int > indices)
T mix2(float factor, const T &a, const T &b)
int face_corner_prev(const IndexRange face, const int corner)
int face_corner_next(const IndexRange face, const int corner)
void free(Subdiv *subdiv)
BLI_INLINE float4 quad_weights_from_uv(float u, float v)
@ SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER
@ SUBDIV_VTX_BOUNDARY_NONE
@ SUBDIV_VTX_BOUNDARY_EDGE_ONLY
BLI_INLINE float crease_to_sharpness(float crease)
std::array< T, 4 > interpolate_vert_data_for_subdivided_irregular_face(Span< int > corner_verts, IndexRange face, int corner, Span< T > src)
BLI_INLINE void rotate_grid_to_quad(int corner, float grid_u, float grid_v, float *r_quad_u, float *r_quad_v)
void displacement_attach_from_multires(Subdiv *subdiv, const Mesh *mesh, const MultiresModifierData *mmd)
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_JUNCTIONS_AND_CONCAVE
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_ALL
Subdiv * new_from_mesh(const Settings *settings, const Mesh *mesh)
std::array< T, 4 > interpolate_corner_data_for_subdivided_irregular_face(IndexRange face, int corner, Span< T > src)
BLI_INLINE void grid_uv_to_ptex_face_uv(float grid_u, float grid_v, float *r_ptex_u, float *r_ptex_v)
void stats_init(SubdivStats *stats)
void displacement_detach(Subdiv *subdiv)
BLI_INLINE float sharpness_to_crease(float sharpness)
BLI_INLINE void ptex_face_uv_to_grid_uv(float ptex_u, float ptex_v, float *r_grid_u, float *r_grid_v)
BLI_INLINE int grid_size_from_level(int level)
BLI_INLINE int rotate_quad_to_corner(float quad_u, float quad_v, float *r_corner_u, float *r_corner_v)
FVarLinearInterpolation fvar_interpolation_from_uv_smooth(int uv_smooth)
void stats_reset(SubdivStats *stats, StatsValue value)
Subdiv * update_from_converter(Subdiv *subdiv, const Settings *settings, OpenSubdiv_Converter *converter)
Subdiv * new_from_converter(const Settings *settings, OpenSubdiv_Converter *converter)
void stats_begin(SubdivStats *stats, StatsValue value)
void stats_end(SubdivStats *stats, StatsValue value)
VtxBoundaryInterpolation vtx_boundary_interpolation_from_subsurf(int boundary_smooth)
void stats_print(const SubdivStats *stats)
@ NUM_SUBDIV_STATS_VALUES
@ SUBDIV_STATS_SUBDIV_TO_MESH_GEOMETRY
@ SUBDIV_STATS_SUBDIV_TO_MESH
@ SUBDIV_STATS_EVALUATOR_CREATE
@ SUBDIV_STATS_SUBDIV_TO_CCG
@ SUBDIV_STATS_TOPOLOGY_REFINER_CREATION_TIME
@ SUBDIV_STATS_EVALUATOR_REFINE
@ SUBDIV_STATS_SUBDIV_TO_CCG_ELEMENTS
@ SUBDIV_STATS_TOPOLOGY_COMPARE
Subdiv * update_from_mesh(Subdiv *subdiv, const Settings *settings, const Mesh *mesh)
bool settings_equal(const Settings *settings_a, const Settings *settings_b)
Span< int > face_ptex_offset_get(Subdiv *subdiv)
ATTR_WARN_UNUSED_RESULT const BMVert * v
VecBase< float, 4 > float4
VecBase< float, 2 > float2
VecBase< float, 3 > float3
void(*) initialize(Displacement *displacement)
void(*) free(Displacement *displacement)
void(*) eval_displacement(Displacement *displacement, int ptex_face_index, float u, float v, const float3 &dPdu, const float3 &dPdv, float3 &r_D)
VtxBoundaryInterpolation vtx_boundary_interpolation
FVarLinearInterpolation fvar_linear_interpolation
double topology_refiner_creation_time
double subdiv_to_ccg_time
double evaluator_refine_time
double evaluator_creation_time
double subdiv_to_mesh_time
double subdiv_to_mesh_geometry_time
double subdiv_to_ccg_elements_time
double topology_compare_time
double begin_timestamp_[NUM_SUBDIV_STATS_VALUES]
Array< int > face_ptex_offset
opensubdiv::TopologyRefinerImpl * topology_refiner
Displacement * displacement_evaluator
struct blender::bke::subdiv::Subdiv::@075013152155070054254207217155027317314121374226 cache_
OpenSubdiv_Evaluator * evaluator
double values_[NUM_SUBDIV_STATS_VALUES]