Hyperbola PointOnObject UI Constraint
You can add a point to be on the hyperbola and it will lock to it. The endpoints of the hyperbola go crazy because of the HyperbolicArcRangeToEndPoints code that is the one of Ellipse <= Awaiting DeepSOIC help ;)
This commit is contained in:
parent
27a76afa94
commit
0cf0f5cc6e
|
@ -735,6 +735,9 @@ GCS::Curve* Sketch::getGCSCurveByGeoId(int geoId)
|
|||
case ArcOfEllipse:
|
||||
return &ArcsOfEllipse[Geoms[geoId].index];
|
||||
break;
|
||||
case ArcOfHyperbola:
|
||||
return &ArcsOfHyperbola[Geoms[geoId].index];
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
};
|
||||
|
@ -1764,6 +1767,12 @@ int Sketch::addPointOnObjectConstraint(int geoId1, PointPos pos1, int geoId2)
|
|||
GCSsys.addConstraintPointOnEllipse(p1, a, tag);
|
||||
return ConstraintsCounter;
|
||||
}
|
||||
else if (Geoms[geoId2].type == ArcOfHyperbola) {
|
||||
GCS::ArcOfHyperbola &a = ArcsOfHyperbola[Geoms[geoId2].index];
|
||||
int tag = ++ConstraintsCounter;
|
||||
GCSsys.addConstraintPointOnHyperbolicArc(p1, a, tag);
|
||||
return ConstraintsCounter;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user