Category Geometry items, Object ProSurface

Function ProSurfaceSameSrfsFind


Description
Finds and returns an array of surfaces that are the same as the input surface. For example, in the case of a cylinder, Creo Parametric creates two half-cylindrical surfaces. If you input one half, the other half is returned by this function.
Replacement in Object TOOLKIT: pfcSurface::ListSameSurfaces
Synopsis
#include <ProSurface.h>
ProErrorProSurfaceSameSrfsFind(
ProSolid solid
/* (In)
The owner of the surface.
*/
ProSurface surface
/* (In)
The surface whose same surfaces are to be found.
*/
ProSurface** r_surf_arr
/* (Out)
The returned array of surfaces. This will include the input surface. You must preallocate this array using ProArrayAlloc(). Free it using ProArrayFree()
*/
int* r_size
/* (Out)
The size of the array. This argument is optional (can be NULL).
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
See Also
ProArrayAlloc

Manual References:

  1. Core: 3D Geometry: Geometry of Surfaces
  2. Core: 3D Geometry: Geometry of Surfaces

Sample Code References:

  1. pt_autoaxis ( AutoAxis.c )
  2. pt_examples ( TestGeom.c )