OpenSubdiv
Loading...
Searching...
No Matches
topologyDescriptor.h
Go to the documentation of this file.
1//
2// Copyright 2014 DreamWorks Animation LLC.
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7#ifndef OPENSUBDIV3_FAR_TOPOLOGY_DESCRIPTOR_H
8#define OPENSUBDIV3_FAR_TOPOLOGY_DESCRIPTOR_H
9
10#include "../version.h"
11
14#include "../far/error.h"
15
16#include <cassert>
17
18namespace OpenSubdiv {
19namespace OPENSUBDIV_VERSION {
20
21namespace Far {
22
33
36
37 int const * numVertsPerFace;
39
42 float const * creaseWeights;
43
46 float const * cornerWeights;
47
50
52
53 // Face-varying data channel -- value indices correspond to vertex indices,
54 // i.e. one for every vertex of every face:
55 //
56 struct FVarChannel {
57
60
62 };
63
66
68};
69
70
71//
72// Forward declarations of required TopologyRefinerFactory<TopologyDescriptor>
73// specializations (defined internally):
74//
75// @cond EXCLUDE_DOXYGEN
76
77template <>
78bool
80 TopologyRefiner & refiner, TopologyDescriptor const & desc);
81
82template <>
83bool
85 TopologyRefiner & refiner, TopologyDescriptor const & desc);
86
87template <>
88bool
90 TopologyRefiner & refiner, TopologyDescriptor const & desc);
91
92template <>
93bool
95 TopologyRefiner & refiner, TopologyDescriptor const & desc);
96
97template <>
98void
100 TopologyError errCode, char const * msg, TopologyDescriptor const & desc);
101
102// @endcond
103
104} // end namespace Far
105
106} // end namespace OPENSUBDIV_VERSION
107using namespace OPENSUBDIV_VERSION;
108} // end namespace OpenSubdiv
109
110#endif /* OPENSUBDIV3_FAR_TOPOLOGY_DESCRIPTOR_H */
A simple reference to raw topology data for use with TopologyRefinerFactory.
static bool assignComponentTopology(TopologyRefiner &newRefiner, MESH const &mesh)
Specify the relationships between vertices, faces, etc. ie the face-vertices, vertex-faces,...
static void reportInvalidTopology(TopologyError errCode, char const *msg, MESH const &mesh)
(Optional) Control run-time topology validation and error reporting
static bool assignComponentTags(TopologyRefiner &newRefiner, MESH const &mesh)
(Optional) Specify edge or vertex sharpness or face holes
static bool resizeComponentTopology(TopologyRefiner &newRefiner, MESH const &mesh)
Specify the number of vertices, faces, face-vertices, etc.
static bool assignFaceVaryingTopology(TopologyRefiner &newRefiner, MESH const &mesh)
(Optional) Specify face-varying data per face
Stores topology data for a specified set of refinement options.