Adding Surfaces
Function Introduced:
Use the function ProSurfacedataAlloc() to allocate memory for the surface data. Once the surface data is initialized, it will be appended to the interface data.
Initializing Surface Data
Functions Introduced:
Use the function ProSurfacedataInit() to initialize the surface data structure.
The input arguments of this function are:
Surface_type—Specifies the type of surface to be created. The types of surfaces are:
PRO_SRF_PLANE—Plane
PRO_SRF_CYL—Cylinder
PRO_SRF_CONE—Cone
PRO_SRF_TORUS—Torus
PRO_SRF_COONS—Coons Patch
PRO_SRF_SPL—Spline Surface
PRO_SRF_FIL—Fillet Surface
PRO_SRF_RUL—Ruled Surface
PRO_SRF_REV—General Surface of Revolution
PRO_SRF_TABCYL—Tabulated Cylinder
PRO_SRF_B_SPL—B-spline surface
PRO_SRF_FOREIGN—Foreign Surface
PRO_SRF_CYL_SPL—Cylindrical Spline Surface
The type of the surface determines the function to be used to initialize the surface data structure.For example, if the type of surface to be created is PRO_SRF_PLANE, then the function ProPlanedataInit() should be used to initialize the surface data structure
surf_uv_min—Specifies the minimum uv extents of the surface.
surf_uv_max—Specifies the maximum uv extents of the surface.
surf_orient—Specifies the orientation of the surface. By default the value is PRO_SURF_ORIENT_OUT
p_surf_shape—The data containing the information about the shape of the surface.
Surface_Id—Specifies a unique identifier of the Surface.
Depending on the shape of the surface, call one of the following functions to create the surface data structure ProSurfaceshapedata and assign it to variable p_surf_shape of function ProSurfacedataInit(). Ensure that the function used to create the ProSurfaceshapedata matches with the ProSrftype value used in ProSurfacedataInit().
Note:
 
Set the configuration option intf_in_keep_high_deg_bspl_srfs to YES to preserve the B-spline surfaces returned by ProBsplinesrfdataInit() in the ProIntData data structure. If this configuration option is not set, these surfaces are interpreted as spline surfaces.
Refer to the Geometry Representations appendix for more information on how to use the above functions.
Note:
 
The following return values for the functions ProBsplinesrfdataInit(), ProRulsrfdataInit(), ProSrfrevdataInit(), and ProTabcyldataInit() should be treated as warnings:
PRO_TK_BSPL_UNSUITABLE_DEGREE
PRO_TK_BSPL_NON_STD_END_KNOTS
PRO_TK_BSPL_MULTI_INNER_KNOTS
They indicate that the geometry finally imported in is different from the geometry initially supplied to the above functions. The geometry is not rejected by the functions and is used to generate the ProSurfaceshapedata data structure.
¿Fue esto útil?