1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketchSolver_ConstraintFillet.h
5 // Author: Artem ZHIDKOV
7 #ifndef SketchSolver_ConstraintFillet_H_
8 #define SketchSolver_ConstraintFillet_H_
10 #include "SketchSolver.h"
11 #include <SketchSolver_Constraint.h>
13 /** \class SketchSolver_ConstraintFillet
15 * \brief Convert fillet constraint to SolveSpace structure
17 class SketchSolver_ConstraintFillet : public SketchSolver_Constraint
20 SketchSolver_ConstraintFillet(ConstraintPtr theConstraint) :
21 SketchSolver_Constraint(theConstraint)
24 virtual int getType() const
25 { return SLVS_C_FILLET; }
27 /// \brief Tries to remove constraint
28 /// \return \c false, if current constraint contains another SketchPlugin constraints (like for multiple coincidence)
29 virtual bool remove(ConstraintPtr theConstraint = ConstraintPtr());
32 /// \brief Converts SketchPlugin constraint to a list of SolveSpace constraints
33 virtual void process();
35 /// \brief Generate list of attributes of constraint in order useful for SolveSpace constraints
36 /// \param[out] theValue numerical characteristic of constraint (e.g. distance)
37 /// \param[out] theAttributes list of attributes to be filled
39 /// Parameter theAttributes contains 5 elements:
40 /// Two first entities in theAttributes list correspond to base features of fillet,
41 /// the next two entities represent trimmed base features and the last one is a fillet arc.
42 virtual void getAttributes(double& theValue, std::vector<Slvs_hEntity>& theAttributes);