[Sidefx-houdini-list] [HOM] Particle type definition

Peter Bowmar pbowmar at gmail.com
Tue Jan 29 17:01:28 EST 2008


There is a Martian Labs plugin that does this (turns points into
particles). It would be really nice if you could do it in HOM! Even
better if the Convert SOP did it for you :)

Cheers,

Peter B

On 29/01/2008, Olex P <hoknamahn at gmail.com> wrote:
> I see... The only way to "convert" points to particles is to copy them into
> GU_PrimParticle... Okay :)
> Thanks.
>
> On Jan 29, 2008 10:39 AM, Andras Ikladi <andras.ikladi at gmail.com> wrote:
>
> > In HDK it should be something like
> > (based on a source code from David Illes):
> >
> > GU_PrimParticle* h_particle;
> > GEO_Point *ppt = 0;
> >
> > for(int i=0;i<numParticles;i++) {
> > ppt = h_particle->getVertex(i).getPt();
> > ppt->getPos()(O) = particles[i].position.x();
> > ppt->getPos()(1) = particles[i].position.y();
> > ppt->getPos()(2) = particles[i].position.z();
> > }
> >
> > I don't think the same can be done in HOM as there is no particle class at
> > all from what I can see.
> >
> > Andras
> >
> > On Jan 29, 2008 10:54 AM, Olex P <hoknamahn at gmail.com> wrote:
> >
> > > Yeah this is interesting question and I'd like to know the answer how to
> > > do
> > > it in both Python and HDK.
> > >
> > > Cheers,
> > > Alex.
> > >
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> >
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list