Isotropix Forums

[Scatterer] know which points are decimate

Clarisse related tips and tricks

[Scatterer] know which points are decimate

Unread postby Mikros_Licensing » Mon May 15, 2017 12:41 pm

Hello,

I work on a scene that uses a scatterer to scat a collection of cars on a GeometryAbcPointCloud as support. I developed a small script that creates the 4 lights for each car scattered (2 at the front, to at the back). My problem comes when I use the decimate value of the scatterer: I have less cars in my street, but I cannot find a way using the API to check at each point if the car is decimate or not (the point cloud still have the same number of point).

Is there a way to know which point is decimate/hidden or not from the parameters set in the scatterer?

Thank you for your advice :)

Cheers,
Clément
Mikros_Licensing
 
Posts: 7
Joined: Tue Dec 22, 2015 7:59 pm

Re: [Scatterer] know which points are decimate

Unread postby adomon » Mon May 15, 2017 1:44 pm

Hi Clement

Could you tell me which version of Clarisse are you using ? Scatterer interface has changed since Daedalus R1 version.
Thanks

Antoine
User avatar
adomon
 
Posts: 29
Joined: Fri Jul 01, 2016 11:22 pm

Re: [Scatterer] know which points are decimate

Unread postby Mikros_Licensing » Mon May 15, 2017 3:11 pm

Sure: I'm using Clarisse 3.0.SP7 on Linux.
Mikros_Licensing
 
Posts: 7
Joined: Tue Dec 22, 2015 7:59 pm

Re: [Scatterer] know which points are decimate

Unread postby adomon » Wed May 17, 2017 9:38 am

Sorry for the late answer,
You can try something like that :

python code

point_cloud_indices = my_scatterer.get_module().get_support_point_indices()

It will return an array of the point indices used on the support geometry to scatter items. It takes into account the decimation pass, so this is probably what you need.

Regards

Antoine
User avatar
adomon
 
Posts: 29
Joined: Fri Jul 01, 2016 11:22 pm

Re: [Scatterer] know which points are decimate

Unread postby Mikros_Licensing » Thu May 18, 2017 6:45 pm

Thanks Antoine, it did the trick!
Mikros_Licensing
 
Posts: 7
Joined: Tue Dec 22, 2015 7:59 pm


Return to Tips and Tricks
cron