[Q&A] Finding all unused points (HDK)
What would be the most efficient way to find all the unused points in the
gdp (using the hdk)? By unused, I mean points that are not used in any
primitive.
I know I can loop through them all and check to see if they are used, but
there must be a more efficient way.
Thanks,
Dave
In GB_Detail there are some various methods to remoe unused points.
00134 // Remove any unused points, and zero area polygons, zero volume
00135 // spheres etc.
00136 // If a primitive group is specified, then only primitives in that
00137 // group are checked for degeneracy.
<snip>
00147 int removeUnusedPoints(const GB_PointGroup
<http://www.sidefx.com/docs/hdk10.0/class_g_b___point_group.html>
*ptgrp = 0);
On Sat, Jan 30, 2010 at 5:02 PM, David Johnson <daveinengland@gmail.com>wrote:
- Show quoted text -
> What would be the most efficient way to find all the unused points in the
> gdp (using the hdk)? By unused, I mean points that are not used in any
> primitive.
>
> I know I can loop through them all and check to see if they are used, but
> there must be a more efficient way.
>
> Thanks,
> Dave
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list@sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list@sidefx.com
https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
Reply Forward Invite Jim Price to chat
Reply |David Johnson to sidefx-houdini.
show details Feb 2 (8 days ago)
Thanks Jim,
I saw that one and have used it, but I was actually trying to find all the
points that weren't being used (i.e. the ones that would be deleted by this
function) so that I could process only them. I think I have a way to
maintain an "unused list", but it's bookkeeping and that always messes me
up. :)
Dave
- Show quoted text -
On Mon, Feb 1, 2010 at 10:37 PM, Jim Price <shadeops@gmail.com> wrote:
> In GB_Detail there are some various methods to remoe unused points.
>
> 00134 // Remove any unused points, and zero area polygons, zero volume
> 00135 // spheres etc.
> 00136 // If a primitive group is specified, then only primitives in
> that
> 00137 // group are checked for degeneracy.
>
> <snip>
> 00147 int removeUnusedPoints(const GB_PointGroup
> <http://www.sidefx.com/docs/hdk10.0/class_g_b___point_group.html>
> *ptgrp = 0);
>
>
>
>
>
> On Sat, Jan 30, 2010 at 5:02 PM, David Johnson <daveinengland@gmail.com
> >wrote:
>
> > What would be the most efficient way to find all the unused points in the
> > gdp (using the hdk)? By unused, I mean points that are not used in any
> > primitive.
> >
> > I know I can loop through them all and check to see if they are used, but
> > there must be a more efficient way.
> >
> > Thanks,
> > Dave
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list@sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list@sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>
_______________________________________________
Sidefx-houdini-list mailing list
Sidefx-houdini-list@sidefx.com
https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
Reply Forward Invite David Johnson to chat
Reply |Jim Price to sidefx-houdini.
show details Feb 2 (7 days ago)
Opps, my apologies. Yea, aside from looping through each point and testing
with isPointUsed(...), I can't think of anything.
On Tue, Feb 2, 2010 at 2:10 AM, David Johnson <daveinengland@gmail.com>wrote:
> Thanks Jim,
>
> I saw that one and have used it, but I was actually trying to find all the
> points that weren't being used (i.e. the ones that would be deleted by this
> function) so that I could process only them. I think I have a way to
> maintain an "unused list", but it's bookkeeping and that always messes me
> up. :)
>
> Dave
>
> On Mon, Feb 1, 2010 at 10:37 PM, Jim Price <shadeops@gmail.com> wrote:
>
> > In GB_Detail there are some various methods to remoe unused points.
> >
> > 00134 // Remove any unused points, and zero area polygons, zero
> volume
> > 00135 // spheres etc.
> > 00136 // If a primitive group is specified, then only primitives in
> > that
> > 00137 // group are checked for degeneracy.
> >
> > <snip>
> > 00147 int removeUnusedPoints(const GB_PointGroup
> > <http://www.sidefx.com/docs/hdk10.0/class_g_b___point_group.html>
> > *ptgrp = 0);
> >
>
- Show quoted text -