#2608 Make the constraints in the SolveSpace solver available for editing

This commit is contained in:
Jacob Støren 2018-08-10 11:48:18 +02:00
parent 5cdde7f851
commit 22fd7a7692
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ std::valarray<double> SolveSpaceSystem::global3DPos(Slvs_hEntity pointEntityId)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Slvs_Constraint SolveSpaceSystem::constraint(Slvs_hConstraint constraintId)
Slvs_Constraint& SolveSpaceSystem::constraint(Slvs_hConstraint constraintId)
{
return (*m_constraintMemory)[constraintId-1];
}

View File

@ -37,7 +37,7 @@ public:
// Returns point as x, y, z values
std::valarray<double> global3DPos (Slvs_hEntity pointEntityId);
Slvs_Constraint constraint(Slvs_hConstraint constraintId);
Slvs_Constraint & constraint(Slvs_hConstraint constraintId);
std::vector<Slvs_hConstraint> failedConstraints() const;
private: