mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-25 04:50:06 +00:00
Code cleanup: no need to use struct keyword in C++ code
It's only required for anonymous structures in C. Also made a bit of whitespace cleanup.
This commit is contained in:
parent
c1dbc50527
commit
c70daced19
@ -111,7 +111,7 @@ int openSubdiv_finishEvaluatorDescr(OpenSubdiv_EvaluatorDescr *evaluator_descr,
|
||||
|
||||
|
||||
int openSubdiv_setEvaluatorCoarsePositions(
|
||||
struct OpenSubdiv_EvaluatorDescr *evaluator_descr,
|
||||
OpenSubdiv_EvaluatorDescr *evaluator_descr,
|
||||
const float *positions, int numVertices)
|
||||
{
|
||||
std::string errorMessage;
|
||||
@ -135,7 +135,7 @@ int openSubdiv_setEvaluatorCoarsePositions(
|
||||
|
||||
|
||||
void openSubdiv_evaluateLimit(
|
||||
struct OpenSubdiv_EvaluatorDescr *evaluation_descr,
|
||||
OpenSubdiv_EvaluatorDescr *evaluation_descr,
|
||||
int face_id, float u, float v,
|
||||
float P[3], float dPdu[3], float dPdv[3])
|
||||
{
|
||||
@ -148,7 +148,7 @@ void openSubdiv_evaluateLimit(
|
||||
}
|
||||
|
||||
void openSubdiv_getEvaluatorTopology(
|
||||
struct OpenSubdiv_EvaluatorDescr *evaluation_descr,
|
||||
OpenSubdiv_EvaluatorDescr *evaluation_descr,
|
||||
int *numVertices,
|
||||
int *refinementLevel,
|
||||
int *numIndices,
|
||||
@ -167,9 +167,9 @@ void openSubdiv_getEvaluatorTopology(
|
||||
*nverts = &evaluation_descr->topology.nverts[0];
|
||||
}
|
||||
|
||||
struct OpenSubdiv_EvaluatorDescr *openSubdiv_getEvaluatorTopologyDescr(
|
||||
struct OpenSubdiv_EvaluatorDescr *evaluator_descr)
|
||||
OpenSubdiv_EvaluatorDescr *openSubdiv_getEvaluatorTopologyDescr(
|
||||
OpenSubdiv_EvaluatorDescr *evaluator_descr)
|
||||
{
|
||||
return (struct OpenSubdiv_EvaluatorDescr *) &evaluator_descr->topology;
|
||||
return (OpenSubdiv_EvaluatorDescr *) &evaluator_descr->topology;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,6 @@ extern "C" {
|
||||
* KIND, either express or implied. See the Apache License for the specific
|
||||
* language governing permissions and limitations under the Apache License.
|
||||
*/
|
||||
|
||||
|
||||
/* Types declaration. */
|
||||
struct OpenSubdiv_EvaluatorDescr;
|
||||
@ -47,7 +46,7 @@ int openSubdiv_finishEvaluatorDescr(struct OpenSubdiv_EvaluatorDescr *evaluator_
|
||||
int openSubdiv_setEvaluatorCoarsePositions(
|
||||
struct OpenSubdiv_EvaluatorDescr *evaluator_descr,
|
||||
const float *positions, int numVertices);
|
||||
|
||||
|
||||
/* Evaluate the subdivision limit surface at the given ptex face and u/v, */
|
||||
/* return position and derivative information. Derivative pointers can be */
|
||||
/* NULL. Note that face index here is the ptex index, or the index into */
|
||||
@ -56,8 +55,6 @@ void openSubdiv_evaluateLimit(
|
||||
struct OpenSubdiv_EvaluatorDescr *evaluation_descr,
|
||||
int face_id, float u, float v,
|
||||
float P[3], float dPdu[3], float dPdv[3]);
|
||||
|
||||
|
||||
|
||||
/* Get topology stored in the evaluator descriptor in order to be able */
|
||||
/* to check whether it still matches the mesh topology one is going to */
|
||||
|
Loading…
Reference in New Issue
Block a user