SmApiTessellate#

Defined in SM_API/inc/SmApiBrep.h

SmApiStatus SmApiTessellate(
SmBrep *pBrep,
SmPolyBrep *&rpResult,
const SmTessellationParams &rParams = SmTessellationParams(),
SmBoolean bAllowPartial = FALSE,
SmTArray<SmTessellationFailure> *pFailures = nullptr,
SmTessellationReport *pReport = nullptr,
)#

Tessellate a brep into a SmPolyBrep mesh using the supplied quality controls. Rejects failed faces unless bAllowPartial is TRUE and pFailures or pReport is supplied. Output errors always fail. The caller owns successful output; errors leave it null. pFailures is cleared on entry and retained on error, using input GetFaces() indices.

Parameters:
  • pBrep – [in ]: Pointer to brep

  • rpResult – [out]: Resulting SmPolyBrep

  • rParams – [in ]: Quality controls

  • bAllowPartial – [in ]: Retain partial meshes when some faces fail

  • pFailures – [out]: First failure per original face

  • pReport – [out]: Nonfatal output topology diagnostics