packages feed

opencascade-hs-0.6.3.0: cpp/hs_GC_MakeArcOfCircle.cpp

#include <GC_MakeArcOfCircle.hxx>
#include <Standard_Failure.hxx>
#include "hs_Exception.h"
#include "hs_GC_MakeArcOfCircle.h"

Handle(Geom_TrimmedCurve) * hs_GC_MakeArcOfCircle_from3Pnts(
        gp_Pnt * a, gp_Pnt * b, gp_Pnt * c,
        HSExceptionType* exType, void ** exPtr
){
    return hs_handleEx(
        exType,
        exPtr,
        [a, b, c]{
            return new opencascade::handle(GC_MakeArcOfCircle(*a, *b, *c).Value());
        }
    );
}

Handle(Geom_TrimmedCurve) * hs_GC_MakeArcOfCircle_fromPntsAndVec(
        gp_Pnt * a, gp_Vec * b, gp_Pnt * c,
        HSExceptionType* exType, void ** exPtr
){
    return hs_handleEx(
        exType,
        exPtr,
        [a, b, c]{
            return new opencascade::handle(GC_MakeArcOfCircle(*a, *b, *c).Value());
        }
    );
}