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

Olex P hoknamahn at gmail.com
Tue Jan 29 07:36:04 EST 2008


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
>



More information about the Sidefx-houdini-list mailing list