opencascade-hs-0.6.3.0: cpp/hs_ShapeFix_Solid.cpp
#include <Message_ProgressRange.hxx>
#include <ShapeFix_Solid.hxx>
#include <TopoDS_Solid.hxx>
#include "hs_Exception.h"
#include "hs_ShapeFix_Solid.h"
ShapeFix_Solid * hs_new_ShapeFix_Solid(){
return new ShapeFix_Solid();
}
ShapeFix_Solid * hs_new_ShapeFix_Solid_fromSolid(
TopoDS_Solid * solid,
HSExceptionType* exType, void ** exPtr
){
return hs_handleEx(
exType,
exPtr,
[solid]{
return new ShapeFix_Solid(*solid);
}
);
}
void hs_delete_ShapeFix_Solid(ShapeFix_Solid * shapeFix){
delete shapeFix;
}
TopoDS_Solid * hs_ShapeFix_Solid_solidFromShell(
ShapeFix_Solid * shapeFix, TopoDS_Shell * shell,
HSExceptionType* exType, void ** exPtr
){
return hs_handleEx(
exType,
exPtr,
[shapeFix, shell]{
return new TopoDS_Solid(shapeFix->SolidFromShell(*shell));
}
);
}
bool hs_ShapeFix_Solid_perform(
ShapeFix_Solid * shapeFix, Message_ProgressRange * progress,
HSExceptionType* exType, void ** exPtr
){
return hs_handleExWithDefault(
exType,
exPtr,
[shapeFix, progress]{
return shapeFix->Perform(*progress);
},
false
);
}
TopoDS_Shape * hs_ShapeFix_Solid_solid(
ShapeFix_Solid * shapeFix,
HSExceptionType* exType, void ** exPtr
){
return hs_handleEx(
exType,
exPtr,
[shapeFix]{
return new TopoDS_Shape(shapeFix->Solid());
}
);
}
bool hs_ShapeFix_Solid_status(ShapeFix_Solid * shapeFix, ShapeExtend_Status status){
return shapeFix->Status(status);
}