TestConstraintAngleBehaviorBackward_2.py
TestConstraintAngleEllipse.py
TestConstraintCoincidence.py
+ TestConstraintCoincidenceBSpline.py
TestConstraintCoincidenceEllipse.py
TestConstraintCoincidenceEllipticArc.py
TestConstraintCollinear.py
TestCreateArcByTransversalLine.py
TestCreateArcChangeType.py
TestCreateBSpline.py
+ TestCreateBSplinePeriodic.py
TestCreateCircleByCenterAndPassed.py
TestCreateCircleByThreePoints.py
TestCreateCircleChangeType.py
TestPresentation.py
TestProjection.py
TestProjectionBSpline.py
+ TestProjectionBSplinePeriodic.py
TestProjectionEllipse.py
TestProjectionEllipticArc.py
TestProjectionIntoResult.py
TestRectangle.py
TestRemainingDoF.py
TestRemoveBSpline.py
+ TestRemoveBSplinePeriodic.py
TestRemoveEllipse.py
TestRemoveEllipticArc.py
TestRemoveSketch.py
ADD_UNIT_TESTS(
TestMoveArc.py
TestMoveBSpline.py
+ TestMoveBSplinePeriodic.py
TestMoveCircle.py
TestMoveEllipse.py
TestMoveEllipticArc.py
def assertPointOnSpline(self, thePoint, theSpline):
point = GeomAPI_Pnt(thePoint.x(), thePoint.y(), 0.0)
- bspline = GeomAPI_BSpline(GeomAPI_Curve(theSpline.results()[-1].resultSubShapePair()[0].shape()))
+ bspline = GeomAPI_Curve(theSpline.results()[-1].resultSubShapePair()[0].shape())
proj = bspline.project(point)
self.assertAlmostEqual(point.distance(proj), 0.0)
def test_line_tangent_coincident_by_pole(self):
""" Test 7. Set tangency between B-spline and a line coincident with B-spline start point
"""
- aLine = self.mySketch.addLine(10, -10, 90, 40)
+ aLine = self.mySketch.addLine(-15, -25, 50, 40)
self.myNbLines += 1
self.myDOF += 4
model.do()