HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEO_Rewire.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GEO_Rewire.h (GEO Library, C++)
7  *
8  * COMMENTS: Functions for rewiring vertices in bulk
9  */
10 
11 #pragma once
12 
13 #ifndef __GEO_Rewire__
14 #define __GEO_Rewire__
15 
16 #include "GEO_API.h"
17 #include <GA/GA_Handle.h>
18 
19 class GEO_Detail;
20 class GA_Group;
21 class UT_WorkBuffer;
22 
23 /// Rewires vertices in group to the point indices specified by rewire_to.
24 /// rewire_to can be a vertex, point, or primitive attribute.
25 /// group can be a point, primitive, vertex, or edge group, and it
26 /// will be expanded based on the owner of rewire_to.
28  GEO_Detail &detail,
29  const GA_RWHandleT<exint> &rewire_to,
30  const GA_Group *group = nullptr,
31  bool rewire_points_recursively = false,
32  bool keep_unused_points = false,
33  UT_WorkBuffer *warnings = nullptr
34 );
35 
36 #endif
#define GEO_API
Definition: GEO_API.h:14
void GEO_API GEOrewireVertices(GEO_Detail &detail, const GA_RWHandleT< exint > &rewire_to, const GA_Group *group=nullptr, bool rewire_points_recursively=false, bool keep_unused_points=false, UT_WorkBuffer *warnings=nullptr)