Good day,
I am having hard times to find out how to get dimensions, coordinates and shape of a complex mesh from usd file.
I have a fancy complex mesh created from usd with create.from_usd command. I am trying different shapes and I want to replicate objects over surface of this mesh. How can I get this data and then set it’s boundaries as a boundaries for the distribution (I will use uniformal). I already tried the bounding box calculation snippet, but, certainly, it will work only for box-shaped objects.
Let me see if I can get @pcallender to help
Hi @kataranov.aau have you tried the 2d scatter function for placing objects over the surface of your mesh? If this works for you, do you still need the bounds and coordinates of the mesh?
https://docs.omniverse.nvidia.com/extensions/latest/ext_replicator/advanced_scattering.html#multi-surface-scatter-2d
Good day, @pcallender. I did try this tutorial, thank You! However objects here that we use for scattering on are known by program simple meshs. In my case I would like to take something from a usd-file (complex mesh), to evaluate it’s shape and area. And then try to use this data as boundaries for my uniformal distribution of objects over that complex form.
The scatter method should work for any object, but of course the more complex the more demanding on the CPU and GPU. But again, it should work up to the limit of it crashing possibly.