36 const OpenSubdiv::Sdc::SchemeType converter_scheme_type =
44 using Options = OpenSubdiv::Sdc::Options;
46 const Options::FVarLinearInterpolation fvar_interpolation =
options.GetFVarLinearInterpolation();
47 const Options::FVarLinearInterpolation converter_fvar_interpolation =
50 if (fvar_interpolation != converter_fvar_interpolation) {
89 const std::vector<std::pair<int, int>> &base_edges = topology_refiner_impl->
base_edges_sparse;
90 for (
size_t edge_index = 0; edge_index < base_edges.size(); edge_index++) {
94 if (base_edges[edge_index] != converter->
edges[edge_index]) {
111 const int layer_index)
114 const int num_faces = base_level.GetNumFaces();
117 for (
int face_index = 0; face_index < num_faces; ++face_index) {
118 OpenSubdiv::Far::ConstIndexArray base_level_face_uvs = base_level.GetFaceFVarValues(
119 face_index, layer_index);
120 for (
int corner = 0; corner < base_level_face_uvs.size(); ++corner) {
122 if (base_level_face_uvs[corner] != uv_index) {
135 using OpenSubdiv::Far::TopologyLevel;
139 if (base_level.GetNumFVarChannels() != num_layers) {
142 for (
int layer_index = 0; layer_index < num_layers; ++layer_index) {
std::vector< float > base_vert_sharpness
std::vector< int > base_face_offsets
OpenSubdiv::Far::TopologyRefiner * topology_refiner
std::vector< float > base_edge_sharpness
std::vector< int > base_corner_verts
bool isEqualToConverter(const OpenSubdiv_Converter *converter) const
std::vector< std::pair< int, int > > base_edges_sparse
CCL_NAMESPACE_BEGIN struct Options options
static const OpenSubdiv::Far::TopologyLevel & getOSDTopologyBaseLevel(const TopologyRefinerImpl *topology_refiner_impl)
static bool checkBaseMeshTopologyMatches(const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter)
static bool checkPreliminaryMatches(const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter)
static bool checkUVLayersMatch(const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter)
static const OpenSubdiv::Far::TopologyRefiner * getOSDTopologyRefiner(const TopologyRefinerImpl *topology_refiner_impl)
static bool checkOptionsMatches(const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter)
OpenSubdiv::Sdc::SchemeType getSchemeTypeFromCAPI(OpenSubdiv_SchemeType type)
static bool checkSchemeTypeMatches(const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter)
static bool checkTopologyAttributesMatch(const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter)
OpenSubdiv::Sdc::Options::FVarLinearInterpolation getFVarLinearInterpolationFromCAPI(OpenSubdiv_FVarLinearInterpolation linear_interpolation)
static bool checkSingleUVLayerMatch(const OpenSubdiv::Far::TopologyLevel &base_level, const OpenSubdiv_Converter *converter, const int layer_index)
std::span< const float > edge_sharpness
OpenSubdiv_FVarLinearInterpolation fvar_linear_interpolation
std::span< const float > vert_sharpness
OpenSubdiv_SchemeType scheme_type
std::span< const int > face_offsets
std::span< const std::pair< int, int > > edges
void(*) precalcUVLayer(const OpenSubdiv_Converter *converter, const int layer_index)
int(*) getNumUVLayers(const OpenSubdiv_Converter *converter)
std::span< const int > corner_verts
int(*) getFaceCornerUVIndex(const OpenSubdiv_Converter *converter, const int face_index, const int corner_index)
void(*) finishUVLayer(const OpenSubdiv_Converter *converter)