Blender V4.3
BKE_subsurf.hh File Reference

Go to the source code of this file.

Classes

struct  CCGDerivedMesh
 

Namespaces

namespace  blender
 
namespace  blender::bke
 
namespace  blender::bke::pbvh
 

Enumerations

enum  SubsurfFlags {
  SUBSURF_USE_RENDER_PARAMS = 1 , SUBSURF_IS_FINAL_CALC = 2 , SUBSURF_FOR_EDIT_MODE = 4 , SUBSURF_IN_EDIT_MODE = 8 ,
  SUBSURF_ALLOC_PAINT_MASK = 16 , SUBSURF_USE_GPU_BACKEND = 32 , SUBSURF_IGNORE_SIMPLIFY = 64
}
 
enum  MultiresModifiedFlags { MULTIRES_COORDS_MODIFIED = 1 , MULTIRES_HIDDEN_MODIFIED = 2 }
 

Functions

 ENUM_OPERATORS (SubsurfFlags, SUBSURF_IGNORE_SIMPLIFY)
 
DerivedMeshsubsurf_make_derived_from_derived (DerivedMesh *dm, SubsurfModifierData *smd, const Scene *scene, float(*vertCos)[3], SubsurfFlags flags)
 
void subsurf_calculate_limit_positions (Mesh *mesh, float(*r_positions)[3])
 
int BKE_ccg_gridsize (int level)
 
int BKE_ccg_factor (int low_level, int high_level)
 

Enumeration Type Documentation

◆ MultiresModifiedFlags

Enumerator
MULTIRES_COORDS_MODIFIED 
MULTIRES_HIDDEN_MODIFIED 

Definition at line 67 of file BKE_subsurf.hh.

◆ SubsurfFlags

Enumerator
SUBSURF_USE_RENDER_PARAMS 
SUBSURF_IS_FINAL_CALC 
SUBSURF_FOR_EDIT_MODE 
SUBSURF_IN_EDIT_MODE 
SUBSURF_ALLOC_PAINT_MASK 
SUBSURF_USE_GPU_BACKEND 
SUBSURF_IGNORE_SIMPLIFY 

Definition at line 37 of file BKE_subsurf.hh.

Function Documentation

◆ BKE_ccg_factor()

int BKE_ccg_factor ( int low_level,
int high_level )

X/Y grid coordinates at 'low_level' can be multiplied by the result of this function to convert to grid coordinates at 'high_level'.

Definition at line 30 of file CCGSubSurf.cc.

References BLI_assert.

Referenced by multires_mdisps_downsample_hidden(), multires_mdisps_upsample_hidden(), and paint_grid_paint_mask().

◆ BKE_ccg_gridsize()

◆ ENUM_OPERATORS()

ENUM_OPERATORS ( SubsurfFlags ,
SUBSURF_IGNORE_SIMPLIFY  )

◆ subsurf_calculate_limit_positions()

◆ subsurf_make_derived_from_derived()