Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hey guys,
I got a question about outputs I got from ProSurfaceDataGet.
I have uv_max & uv_min from surface data, which are values referring to UV coordinate, I know UV is a surface created to cover the whole surface, but I don't know if it is a plane or quilt, if it is a rectangle or in other shape.
I need to write essay, and this is part of it, thus I have to fathom it clearly and precisely.
Do you guys have any ideas about this ?
I put what I perceived below, I don't know whether it is right, pls correct me if I'm wrong.
BIG THANKS !
Hi
ProSurfaceDataGet is the API which gives you structure ProGeomitemdata as output.
ProGeomitemdata* p_data_ptr;
p_data_ptr->data.p_surface_data->srf_shape;
p_data_ptr->data.p_surface_data->type;
Above two information from geomitemdata structure might be helpful to you.
HIH
Ketan
*p_surf_type will tell you the Type, contour parsing may your next job 🙂
extern ProError ProSurfacedataGet ( ProSurfacedata *p_surf_data,
ProSrftype *p_surf_type,
ProUvParam surf_uv_min,
ProUvParam surf_uv_max,
ProSurfaceOrient *p_surf_orient,
ProSurfaceshapedata *p_surf_shape,
int *p_surf_id );
typedef enum pro_srf_type
{
PRO_SRF_NONE = -3,
PRO_SRF_PLANE = 34,
PRO_SRF_CYL = 36,
PRO_SRF_CONE = 37,
PRO_SRF_TORUS = 38,
PRO_SRF_COONS = 39,
PRO_SRF_SPL = 40,
PRO_SRF_FIL = 41,
PRO_SRF_RUL = 42,
PRO_SRF_REV = 43,
PRO_SRF_TABCYL = 44,
PRO_SRF_B_SPL = 45,
PRO_SRF_FOREIGN = 46,
PRO_SRF_CYL_SPL = 48,
PRO_SRF_SPL2DER = 50
} ProSrftype;