cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Basic question about ProSurfaceDataGet

K_V
10-Marble
10-Marble

Basic question about ProSurfaceDataGet

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.

圖片1.png

BIG THANKS !

2 REPLIES 2
Ketan_Lalcheta
19-Tanzanite
(To:K_V)

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

RPN
17-Peridot
17-Peridot
(To:K_V)

*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;

 

Announcements


Top Tags