Blender V5.0
subdiv_inline.hh File Reference
#include "BLI_assert.h"
#include "BLI_compiler_compat.h"
#include "BKE_subdiv.hh"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::bke
namespace  blender::bke::subdiv

Functions

PTex faces and grids
BLI_INLINE void blender::bke::subdiv::ptex_face_uv_to_grid_uv (float ptex_u, float ptex_v, float *r_grid_u, float *r_grid_v)
BLI_INLINE float2 blender::bke::subdiv::ptex_face_uv_to_grid_uv (const float2 &ptex_uv)
BLI_INLINE void blender::bke::subdiv::grid_uv_to_ptex_face_uv (float grid_u, float grid_v, float *r_ptex_u, float *r_ptex_v)
BLI_INLINE int blender::bke::subdiv::grid_size_from_level (int level)
BLI_INLINE int blender::bke::subdiv::rotate_quad_to_corner (float quad_u, float quad_v, float *r_corner_u, float *r_corner_v)
BLI_INLINE float2 blender::bke::subdiv::rotate_quad_to_corner (int corner, const float2 &quad)
BLI_INLINE void blender::bke::subdiv::rotate_grid_to_quad (int corner, float grid_u, float grid_v, float *r_quad_u, float *r_quad_v)
BLI_INLINE float blender::bke::subdiv::crease_to_sharpness (float crease)
BLI_INLINE float blender::bke::subdiv::sharpness_to_crease (float sharpness)