-// Copyright (C) 2014-2022 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
class SketchAPI_Rectangle;
class SketchAPI_Rotation;
class SketchAPI_Translation;
+class SketchAPI_MacroMiddlePoint;
//--------------------------------------------------------------------------------------
typedef std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> PointOrReference;
/// Add offset
SKETCHAPI_EXPORT
- std::shared_ptr<SketchAPI_Offset> addOffset(
+ std::shared_ptr<SketchAPI_Offset> addOffset(
const std::list<std::shared_ptr<ModelAPI_Object> > & theObjects,
const ModelHighAPI_Double & theValue,
const bool theReversed = false,
- const std::string & theJointType = SketchPlugin_Offset::JOINT_KEEP_DISTANCE());
+ const std::string & theJointType = SketchPlugin_Offset::JOINT_KEEP_DISTANCE(),
+ const bool theApprox = false);
/// Add translation
SKETCHAPI_EXPORT
const ModelHighAPI_RefAttr & thePoint,
const ModelHighAPI_RefAttr & theLine);
+ /// Set middle
+ SKETCHAPI_EXPORT
+ std::shared_ptr<SketchAPI_MacroMiddlePoint> setMiddlePoint(
+ const ModelHighAPI_RefAttr& theLine);
+
/// Set parallel
SKETCHAPI_EXPORT
std::shared_ptr<ModelHighAPI_Interface> setParallel(