Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
I got one problem. I use ProSolidOutlineGet() to get the bounding box's size.
By maximum and minimum values of X, Y, and Z, I use them to get a plane and get points as starting points in ProSolidRayIntersectionCompute().
Now, I got an interference point on the surface, but I can't find any way or function to get the surface type.
Can I use a point to get the surface type? Does anyone have some advice?
Solved! Go to Solution.
The process to find the surface type at a given point involves several steps:
1. Use ProGeometryAtPointFind. This will give you an array of ProSellection objects.
2. for each member of the sellection array get the corresponding modelitem with ProSelectionModelitemGet. Use the type member of the modelitem to find if it's a surface or other type of entity.
3. If is a surface use ProGeomitemToSurface to get the surface handle and then ProSurfaceTypeGet to get the surface type.
The process to find the surface type at a given point involves several steps:
1. Use ProGeometryAtPointFind. This will give you an array of ProSellection objects.
2. for each member of the sellection array get the corresponding modelitem with ProSelectionModelitemGet. Use the type member of the modelitem to find if it's a surface or other type of entity.
3. If is a surface use ProGeomitemToSurface to get the surface handle and then ProSurfaceTypeGet to get the surface type.
OK, Thank you for your reply. I will try it.