Data Structures | |
struct | A3DCopyAndAdaptBrepModelData |
Copy and convert to NURBS parameter. More... | |
Functions | |
A3DStatus | A3DCopyAndAdaptBrepModel (const A3DEntity *p, const A3DCopyAndAdaptBrepModelData *psSetting, A3DEntity **const pp) |
Copy and adapt B-rep parameters. More... | |
A3DStatus | A3DCopyAndAdaptBrepModelAdvanced (const A3DEntity *p, const A3DCopyAndAdaptBrepModelData *psSetting, A3DEntity **const pp, A3DUns32 *puiNbErrors, A3DInt32 **paiErrors) |
Copy and adapt B-rep parameters. More... | |
A3DStatus A3DCopyAndAdaptBrepModel | ( | const A3DEntity * | p, |
const A3DCopyAndAdaptBrepModelData * | psSetting, | ||
A3DEntity **const | pp | ||
) |
Copy and adapt B-rep parameters.
The B-rep used by HOOPS Exchange may not be completely compatible with modeling systems that do not support the full range of B-rep as employed by PRC. This function attempts to convert PRC B-rep into a format that is compatible with your system.
In order to use this function, you create a A3DCopyAndAdaptBrepModelData structure and configure it to create a new B-rep model using entities you are able to support. The function can transform predetermined surface types and curves to NURBS. It also can process parametric curves and 3D curves, as well as split periodic parameteric surfaces.
Finally, it creates a new B-rep model. After using it, the new model should be deleted.
A3DCopyAndAdaptBrepModel will perform the following steps:
[in] | p | A pointer to the source B-rep entity |
[in] | psSetting | The structure that defines which types of B-rep you would like to convert to |
[out] | pp | A pointer to the result B-rep entity or entities |
A3DStatus A3DCopyAndAdaptBrepModelAdvanced | ( | const A3DEntity * | p, |
const A3DCopyAndAdaptBrepModelData * | psSetting, | ||
A3DEntity **const | pp, | ||
A3DUns32 * | puiNbErrors, | ||
A3DInt32 ** | paiErrors | ||
) |
Copy and adapt B-rep parameters.
Same as A3DCopyAndAdaptBrepModelData , but return status of each face in error if A3DCopyAndAdaptBrepModelData::m_bContinueOnError is set to true
puiNbErrors return the number of face in error
paiErrors corresponds to a set of index and error code paiErrors[0] = type the topological element paiErrors[1] = error status paiErrors[2] = number of index to find element (connex = 1, shell = 2, face = 3, loop = 4, coedge /edge = 5) paiErrors[3] = first index ... paiErrors[3+paiErrors[2]] = last index
[in] | p | A pointer to the source B-rep entity |
[in] | psSetting | The structure that defines which types of B-rep you would like to convert to |
[out] | pp | A pointer to the result B-rep entity or entities |
[out] | puiNbErrors | Number of elements in error |
[out] | paiErrors | Index and error code of each element |