Synopsis
PDX_MSGT lpiw_ProcessBody(long option, MDA_PTR lint_body_ptr, int lint_model, LPIW_ENT_FUNC *func, BODY *&acis_body)
Purpose
Create a ACIS BODY from a MDA ACIS_BODY.
Description
This function will create a ACIS BODY from a MDA ACIS_BODY. If the ACIS_BODY references a ACIS_LUMP, this function will call lpiw__ProcessLump expecting a ACIS LUMP entity to be created. If the ACIS_BODY references a ACIS_WIRE, this function will call lpiw__ProcessWire expecting a ACIS WIRE entity to be created. The func argument specifies a function to be called for each entity as it is processed and may be set to NULL. If specified, this function must have declared as:
PDX_MSGT foo (MDA_PTR lint_body_ptr, void *entity, ENTITY *acis_entity)
When called, the entity with database pointer lint_body_ptr will be locked at the address specified by entity. The function should return a value of MDA_NOERR. Changes to the acis_entity will be made permenant.
Input
option
LPIW_CONV_2D
Convert the ACIS BODY to 2D.
LPIW_NO_PCURVES
Do not create pcurves for the ACIS model.
LPIW_NO_CONV_2D
Do not call api_body_to_2d function.
LPIW_TRIM_NURB_SURF
Trim the face containing a nurb surface.
lint_body_ptr
MDA pointer to a MDA ACIS_BODY.
lint_model
ACIS model number
func
Function to be invoked for each entity or NULL
Return
LPIW_NOERR
Low level error return
.fi