HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEO_ExpandGroupUtils Class Reference

#include <GEO_ExpandGroupUtils.h>

Classes

class  ConnectAttribute
 

Public Types

using ConnectAttribArray = UT_Array< ConnectAttribute >
 

Static Public Member Functions

static void getPointConnectivity (UT_Array< GA_OffsetArray > &ranges, const GA_PointGroup &pts, const GEO_Detail &gdp, const ConnectAttribArray &attribs)
 
static void getPrimitiveConnectivity (UT_Array< GA_OffsetArray > &ranges, const GA_PrimitiveGroup &prims, const GEO_Detail &gdp, const ConnectAttribArray &attribs)
 
static void getVertexConnectivity (UT_Array< GA_OffsetArray > &ranges, const GA_VertexGroup &vtxs, const GEO_Detail &gdp, const ConnectAttribArray &attribs)
 
static void getVerticesOnEdge (GA_OffsetArray &vtx_out, const GA_Edge &edge, const GEO_Detail &gdp, GA_OffsetArray &tmp_vtx_1, GA_OffsetArray &tmp_vtx_2)
 
static void floodFillPrimGroup (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp)
 
static void floodFillPointGroup (GA_PointGroup &point_group, const GEO_Detail &gdp)
 
static void floodFillVertexGroup (GA_VertexGroup &vtx_group, const GEO_Detail &gdp)
 
static void floodFillEdgeGroup (GA_EdgeGroup &edge_group, const GEO_Detail &gdp)
 
static void growPrimGroupNIters (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool limit_iters, exint iters, UT_IntArray *prim_step_map=nullptr, bool require_share_edge=false)
 
static void growPointGroupNIters (GA_PointGroup &point_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool limit_iters, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void growVertexGroupNIters (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool limit_iters, exint iters, UT_IntArray *vtx_step_map=nullptr)
 
static void growEdgeGroupNIters (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool limit_iters, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void growPrimGroupNIters (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool limit_iters, exint iters, UT_IntArray *prim_step_map=nullptr, bool require_share_edge=false)
 
static void growPointGroupNIters (GA_PointGroup &point_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool limit_iters, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void growVertexGroupNIters (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool limit_iters, exint iters, UT_IntArray *vtx_step_map=nullptr)
 
static void growEdgeGroupNIters (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool limit_iters, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void expandPrimsByNormal (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const ConnectAttribArray &attribs, const GA_Attribute *normal_attr, UT_IntArray *prim_step_map=nullptr, bool require_share_edge=true)
 
static void expandPointsByNormal (GA_PointGroup &point_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const ConnectAttribArray &attribs, const GA_Attribute *normal_attrib, UT_IntArray *pt_step_map=nullptr)
 
static void expandVerticesByNormal (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const ConnectAttribArray &attribs, const GA_Attribute *normal_attrib, UT_IntArray *vtx_step_map=nullptr)
 
static void expandEdgesByNormal (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const ConnectAttribArray &attribs, const GA_Attribute *normal_attrib, UT_IntArray *pt_step_map=nullptr)
 
static void expandPrimsByNormal (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const GA_Attribute *attrib, const GA_Attribute *normal_attrib, UT_IntArray *prim_step_map=nullptr, bool require_share_edge=true)
 
static void expandPointsByNormal (GA_PointGroup &point_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const GA_Attribute *attrib, const GA_Attribute *normal_attrib, UT_IntArray *pt_step_map=nullptr)
 
static void expandVerticesByNormal (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const GA_Attribute *attrib, const GA_Attribute *normal_attrib, UT_IntArray *vtx_step_map=nullptr)
 
static void expandEdgesByNormal (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, fpreal spread_angle, bool limit_iters, exint iters, bool pick_all_matching_normals, bool static_reference_normal, const GA_PrimitiveGroup *hidden_prims, const GA_Attribute *attrib, const GA_Attribute *normal_attrib, UT_IntArray *pt_step_map=nullptr)
 
static void shrinkPrimGroupNIters (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, exint iters, UT_IntArray *prim_step_map=nullptr, bool require_share_edge=false)
 
static void shrinkPointGroupNIters (GA_PointGroup &point_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void shrinkVertexGroupNIters (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, exint iters, UT_IntArray *vtx_step_map=nullptr)
 
static void shrinkEdgeGroupNIters (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void shrinkPrimGroupNIters (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, const GA_Attribute *attrib, exint iters, UT_IntArray *prim_step_map=nullptr, bool require_share_edge=false)
 
static void shrinkPointGroupNIters (GA_PointGroup &point_group, const GEO_Detail &gdp, const GA_Attribute *attrib, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void shrinkVertexGroupNIters (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, const GA_Attribute *attrib, exint iters, UT_IntArray *vtx_step_map=nullptr)
 
static void shrinkEdgeGroupNIters (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, const GA_Attribute *attrib, exint iters, UT_IntArray *pt_step_map=nullptr)
 
static void findPrimGroupBoundary (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool consider_unshared_edges=true, bool all_pt_boundary=false, bool consider_unshared_curve_edges=true)
 
static void findPointGroupBoundary (GA_PointGroup &pt_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool consider_unshared_edges=true, bool consider_unshared_curve_edges=true)
 
static void findVertexGroupBoundary (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool consider_unshared_edges=true, bool consider_unshared_curve_edges=true)
 
static void findEdgeGroupBoundary (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, const ConnectAttribArray &attribs, bool consider_unshared_edges=true, bool consider_unshared_curve_edges=true)
 
static void findPrimGroupBoundary (GA_PrimitiveGroup &prim_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool consider_unshared_edges=true, bool all_pt_boundary=false, bool consider_unshared_curve_edges=true)
 
static void findPointGroupBoundary (GA_PointGroup &pt_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool consider_unshared_edges=true, bool consider_unshared_curve_edges=true)
 
static void findVertexGroupBoundary (GA_VertexGroup &vtx_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool consider_unshared_edges=true, bool consider_unshared_curve_edges=true)
 
static void findEdgeGroupBoundary (GA_EdgeGroup &edge_group, const GEO_Detail &gdp, const GA_Attribute *attrib, bool consider_unshared_edges=true, bool consider_unshared_curve_edges=true)
 

Detailed Description

Definition at line 26 of file GEO_ExpandGroupUtils.h.

Member Typedef Documentation

Member Function Documentation

static void GEO_ExpandGroupUtils::expandEdgesByNormal ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const ConnectAttribArray attribs,
const GA_Attribute normal_attrib,
UT_IntArray pt_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::expandEdgesByNormal ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const GA_Attribute attrib,
const GA_Attribute normal_attrib,
UT_IntArray pt_step_map = nullptr 
)
inlinestatic

Definition at line 447 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::expandPointsByNormal ( GA_PointGroup point_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const ConnectAttribArray attribs,
const GA_Attribute normal_attrib,
UT_IntArray pt_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::expandPointsByNormal ( GA_PointGroup point_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const GA_Attribute attrib,
const GA_Attribute normal_attrib,
UT_IntArray pt_step_map = nullptr 
)
inlinestatic

Definition at line 403 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::expandPrimsByNormal ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const ConnectAttribArray attribs,
const GA_Attribute normal_attr,
UT_IntArray prim_step_map = nullptr,
bool  require_share_edge = true 
)
static
static void GEO_ExpandGroupUtils::expandPrimsByNormal ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const GA_Attribute attrib,
const GA_Attribute normal_attrib,
UT_IntArray prim_step_map = nullptr,
bool  require_share_edge = true 
)
inlinestatic

Definition at line 379 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::expandVerticesByNormal ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const ConnectAttribArray attribs,
const GA_Attribute normal_attrib,
UT_IntArray vtx_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::expandVerticesByNormal ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
fpreal  spread_angle,
bool  limit_iters,
exint  iters,
bool  pick_all_matching_normals,
bool  static_reference_normal,
const GA_PrimitiveGroup hidden_prims,
const GA_Attribute attrib,
const GA_Attribute normal_attrib,
UT_IntArray vtx_step_map = nullptr 
)
inlinestatic

Definition at line 425 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::findEdgeGroupBoundary ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  consider_unshared_edges = true,
bool  consider_unshared_curve_edges = true 
)
static
static void GEO_ExpandGroupUtils::findEdgeGroupBoundary ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  consider_unshared_edges = true,
bool  consider_unshared_curve_edges = true 
)
inlinestatic

Definition at line 652 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::findPointGroupBoundary ( GA_PointGroup pt_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  consider_unshared_edges = true,
bool  consider_unshared_curve_edges = true 
)
static
static void GEO_ExpandGroupUtils::findPointGroupBoundary ( GA_PointGroup pt_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  consider_unshared_edges = true,
bool  consider_unshared_curve_edges = true 
)
inlinestatic

Definition at line 620 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::findPrimGroupBoundary ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  consider_unshared_edges = true,
bool  all_pt_boundary = false,
bool  consider_unshared_curve_edges = true 
)
static
static void GEO_ExpandGroupUtils::findPrimGroupBoundary ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  consider_unshared_edges = true,
bool  all_pt_boundary = false,
bool  consider_unshared_curve_edges = true 
)
inlinestatic

Definition at line 603 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::findVertexGroupBoundary ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  consider_unshared_edges = true,
bool  consider_unshared_curve_edges = true 
)
static
static void GEO_ExpandGroupUtils::findVertexGroupBoundary ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  consider_unshared_edges = true,
bool  consider_unshared_curve_edges = true 
)
inlinestatic

Definition at line 636 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::floodFillEdgeGroup ( GA_EdgeGroup edge_group,
const GEO_Detail gdp 
)
static
static void GEO_ExpandGroupUtils::floodFillPointGroup ( GA_PointGroup point_group,
const GEO_Detail gdp 
)
static
static void GEO_ExpandGroupUtils::floodFillPrimGroup ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp 
)
static

Functions for just flood filling the existing group. group: the group to be grown gdp: the detail NOTE: this works as if require_share_edge is false.

static void GEO_ExpandGroupUtils::floodFillVertexGroup ( GA_VertexGroup vtx_group,
const GEO_Detail gdp 
)
static
static void GEO_ExpandGroupUtils::getPointConnectivity ( UT_Array< GA_OffsetArray > &  ranges,
const GA_PointGroup pts,
const GEO_Detail gdp,
const ConnectAttribArray attribs 
)
static
static void GEO_ExpandGroupUtils::getPrimitiveConnectivity ( UT_Array< GA_OffsetArray > &  ranges,
const GA_PrimitiveGroup prims,
const GEO_Detail gdp,
const ConnectAttribArray attribs 
)
static
static void GEO_ExpandGroupUtils::getVertexConnectivity ( UT_Array< GA_OffsetArray > &  ranges,
const GA_VertexGroup vtxs,
const GEO_Detail gdp,
const ConnectAttribArray attribs 
)
static
static void GEO_ExpandGroupUtils::getVerticesOnEdge ( GA_OffsetArray vtx_out,
const GA_Edge edge,
const GEO_Detail gdp,
GA_OffsetArray tmp_vtx_1,
GA_OffsetArray tmp_vtx_2 
)
static
static void GEO_ExpandGroupUtils::growEdgeGroupNIters ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  limit_iters,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::growEdgeGroupNIters ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  limit_iters,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
inlinestatic

Definition at line 287 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::growPointGroupNIters ( GA_PointGroup point_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  limit_iters,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::growPointGroupNIters ( GA_PointGroup point_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  limit_iters,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
inlinestatic

Definition at line 253 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::growPrimGroupNIters ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  limit_iters,
exint  iters,
UT_IntArray prim_step_map = nullptr,
bool  require_share_edge = false 
)
static
static void GEO_ExpandGroupUtils::growPrimGroupNIters ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  limit_iters,
exint  iters,
UT_IntArray prim_step_map = nullptr,
bool  require_share_edge = false 
)
inlinestatic

Definition at line 234 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::growVertexGroupNIters ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
bool  limit_iters,
exint  iters,
UT_IntArray vtx_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::growVertexGroupNIters ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
bool  limit_iters,
exint  iters,
UT_IntArray vtx_step_map = nullptr 
)
inlinestatic

Definition at line 270 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::shrinkEdgeGroupNIters ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::shrinkEdgeGroupNIters ( GA_EdgeGroup edge_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
inlinestatic

Definition at line 551 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::shrinkPointGroupNIters ( GA_PointGroup point_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::shrinkPointGroupNIters ( GA_PointGroup point_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
exint  iters,
UT_IntArray pt_step_map = nullptr 
)
inlinestatic

Definition at line 523 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::shrinkPrimGroupNIters ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
exint  iters,
UT_IntArray prim_step_map = nullptr,
bool  require_share_edge = false 
)
static
static void GEO_ExpandGroupUtils::shrinkPrimGroupNIters ( GA_PrimitiveGroup prim_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
exint  iters,
UT_IntArray prim_step_map = nullptr,
bool  require_share_edge = false 
)
inlinestatic

Definition at line 508 of file GEO_ExpandGroupUtils.h.

static void GEO_ExpandGroupUtils::shrinkVertexGroupNIters ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
const ConnectAttribArray attribs,
exint  iters,
UT_IntArray vtx_step_map = nullptr 
)
static
static void GEO_ExpandGroupUtils::shrinkVertexGroupNIters ( GA_VertexGroup vtx_group,
const GEO_Detail gdp,
const GA_Attribute attrib,
exint  iters,
UT_IntArray vtx_step_map = nullptr 
)
inlinestatic

Definition at line 537 of file GEO_ExpandGroupUtils.h.


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