SmApiUsdGeometryValidate#

Defined in SM_API_USD/inc/SmApiUsdGeometryValidate.h

SmStatus SmApiUsdGeometryValidate(
const pxr::UsdPrim &crBrepArray,
int iLevel,
SmApiUsdGeometryResult &rResult,
)#

Import a BrepArray prim’s Breps and run SmBrep::AssertValid on each, without changing the stage. iLevel is the AssertValid depth: 0 is fastest, 2 runs every check. The Breps are not healed: healing can repair the defects being looked for, and the healer can crash on invalid Breps. Several threads can validate different prims at once while the stage is not modified.

Returns:

SM_SUCCESS when every Brep imported, whether or not it is valid; SM_ERR_INVALID_INPUT for an iLevel outside 0-2; SM_ERR otherwise