Blender V5.3
blender::bke::subdiv::Subdiv Struct Reference

#include <BKE_subdiv.hh>

Classes

struct  [struct].cache_

Public Attributes

Settings settings
opensubdiv::TopologyRefinerImpl * topology_refiner
OpenSubdiv_Evaluator * evaluator
Displacement * displacement_evaluator
SubdivStats stats
struct  cache_

Detailed Description

This structure contains everything needed to construct subdivided surface. It does not specify storage, memory layout or anything else. It is possible to create different storage's (like, grid based CPU side buffers, GPU subdivision mesh, CPU side fully qualified mesh) from the same Subdiv structure.

Definition at line 181 of file BKE_subdiv.hh.

Member Data Documentation

◆ cache_

struct blender::bke::subdiv::Subdiv::[struct].cache_ blender::bke::subdiv::Subdiv::cache_

◆ displacement_evaluator

Displacement* blender::bke::subdiv::Subdiv::displacement_evaluator

Optional displacement evaluator.

Definition at line 196 of file BKE_subdiv.hh.

◆ evaluator

OpenSubdiv_Evaluator* blender::bke::subdiv::Subdiv::evaluator

CPU side evaluator.

Definition at line 194 of file BKE_subdiv.hh.

Referenced by blender::draw::draw_subdiv_cache_need_face_data().

◆ settings

Settings blender::bke::subdiv::Subdiv::settings

Settings this subdivision surface is created for.

It is read-only after assignment in BKE_subdiv_new_from_FOO().

Definition at line 187 of file BKE_subdiv.hh.

Referenced by blender::draw::DRW_subdivide_loose_geom(), blender::multires_reshape_smooth_object_grids_with_details(), and blender::bke::subdiv::subdiv_mesh_vert_of_loose_edge().

◆ stats

SubdivStats blender::bke::subdiv::Subdiv::stats

Statistics for debugging.

Definition at line 198 of file BKE_subdiv.hh.

◆ topology_refiner

opensubdiv::TopologyRefinerImpl* blender::bke::subdiv::Subdiv::topology_refiner

Topology refiner includes all the glue logic to feed Blender side topology to OpenSubdiv. It can be shared by both evaluator and GL mesh drawer.

Definition at line 192 of file BKE_subdiv.hh.


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