Blender V5.3
OpenSubdiv_Converter Struct Reference

#include <opensubdiv_converter_capi.hh>

Public Attributes

int verts_num
std::span< const std::pair< int, int > > edges
std::span< const int > face_offsets
std::span< const int > corner_verts
std::span< const float > edge_sharpness
std::span< const float > vert_sharpness
OpenSubdiv_SchemeType scheme_type
OpenSubdiv_VtxBoundaryInterpolation vtx_boundary_interpolation
OpenSubdiv_FVarLinearInterpolation fvar_linear_interpolation
bool(*) specifiesFullTopology (const OpenSubdiv_Converter *converter)
void(*) getFaceEdges (const OpenSubdiv_Converter *converter, const int face_index, int *face_edges)
int(*) getNumEdgeFaces (const OpenSubdiv_Converter *converter, const int edge_index)
void(*) getEdgeFaces (const OpenSubdiv_Converter *converter, const int edge, int *edge_faces)
int(*) getNumVertexEdges (const OpenSubdiv_Converter *converter, const int vertex_index)
void(*) getVertexEdges (const OpenSubdiv_Converter *converter, const int vertex_index, int *vertex_edges)
int(*) getNumVertexFaces (const OpenSubdiv_Converter *converter, const int vertex_index)
void(*) getVertexFaces (const OpenSubdiv_Converter *converter, const int vertex_index, int *vertex_faces)
int(*) getNumUVLayers (const OpenSubdiv_Converter *converter)
void(*) precalcUVLayer (const OpenSubdiv_Converter *converter, const int layer_index)
void(*) finishUVLayer (const OpenSubdiv_Converter *converter)
int(*) getNumUVCoordinates (const OpenSubdiv_Converter *converter)
int(*) getFaceCornerUVIndex (const OpenSubdiv_Converter *converter, const int face_index, const int corner_index)
void(*) freeUserData (const OpenSubdiv_Converter *converter)
void * user_data

Detailed Description

Definition at line 18 of file opensubdiv_converter_capi.hh.

Member Data Documentation

◆ corner_verts

◆ edge_sharpness

std::span<const float> OpenSubdiv_Converter::edge_sharpness

Sharpness (aka crease) of every edge and every vertex, in the [0, #OPENSUBDIV_SHARPNESS_INFINITE] range. Vertex sharpness includes the infinite sharpness used to make vertices adjacent to a loose edge sharp.

Either aligned with edges and with the vertices respectively, or empty.

Definition at line 36 of file opensubdiv_converter_capi.hh.

Referenced by blender::opensubdiv::checkBaseMeshTopologyMatches(), blender::bke::subdiv::converter_init_for_mesh(), and blender::opensubdiv::storeBaseMeshTopology().

◆ edges

std::span<const std::pair<int, int> > OpenSubdiv_Converter::edges

The topology of the mesh to be subdivided. See #Mesh::edges(), #Mesh::face_offsets(), and #Mesh::corner_verts() documentation for the details. Other topology information is currently encoded with callbacks rather than arrays directly.

Definition at line 25 of file opensubdiv_converter_capi.hh.

Referenced by blender::opensubdiv::checkBaseMeshTopologyMatches(), blender::bke::subdiv::converter_init_for_mesh(), and blender::opensubdiv::storeBaseMeshTopology().

◆ face_offsets

◆ finishUVLayer

void(*) OpenSubdiv_Converter::finishUVLayer(const OpenSubdiv_Converter *converter)

◆ freeUserData

void(*) OpenSubdiv_Converter::freeUserData(const OpenSubdiv_Converter *converter)

◆ fvar_linear_interpolation

◆ getEdgeFaces

void(*) OpenSubdiv_Converter::getEdgeFaces(const OpenSubdiv_Converter *converter, const int edge, int *edge_faces)

Definition at line 71 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getFaceCornerUVIndex

int(*) OpenSubdiv_Converter::getFaceCornerUVIndex(const OpenSubdiv_Converter *converter, const int face_index, const int corner_index)

◆ getFaceEdges

void(*) OpenSubdiv_Converter::getFaceEdges(const OpenSubdiv_Converter *converter, const int face_index, int *face_edges)

Definition at line 61 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getNumEdgeFaces

int(*) OpenSubdiv_Converter::getNumEdgeFaces(const OpenSubdiv_Converter *converter, const int edge_index)

Definition at line 69 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getNumUVCoordinates

int(*) OpenSubdiv_Converter::getNumUVCoordinates(const OpenSubdiv_Converter *converter)

Definition at line 108 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getNumUVLayers

int(*) OpenSubdiv_Converter::getNumUVLayers(const OpenSubdiv_Converter *converter)

◆ getNumVertexEdges

int(*) OpenSubdiv_Converter::getNumVertexEdges(const OpenSubdiv_Converter *converter, const int vertex_index)

Definition at line 77 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getNumVertexFaces

int(*) OpenSubdiv_Converter::getNumVertexFaces(const OpenSubdiv_Converter *converter, const int vertex_index)

Definition at line 83 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getVertexEdges

void(*) OpenSubdiv_Converter::getVertexEdges(const OpenSubdiv_Converter *converter, const int vertex_index, int *vertex_edges)

Definition at line 79 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ getVertexFaces

void(*) OpenSubdiv_Converter::getVertexFaces(const OpenSubdiv_Converter *converter, const int vertex_index, int *vertex_faces)

Definition at line 85 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ precalcUVLayer

void(*) OpenSubdiv_Converter::precalcUVLayer(const OpenSubdiv_Converter *converter, const int layer_index)

◆ scheme_type

◆ specifiesFullTopology

bool(*) OpenSubdiv_Converter::specifiesFullTopology(const OpenSubdiv_Converter *converter)

Definition at line 53 of file opensubdiv_converter_capi.hh.

Referenced by blender::bke::subdiv::init_functions().

◆ user_data

◆ vert_sharpness

◆ verts_num

◆ vtx_boundary_interpolation

OpenSubdiv_VtxBoundaryInterpolation OpenSubdiv_Converter::vtx_boundary_interpolation

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