mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Most functionality working
This commit is contained in:
parent
94d0d2a868
commit
2efa2a3a09
3 changed files with 172 additions and 56 deletions
|
|
@ -30,6 +30,8 @@ import unittest
|
|||
from math import sqrt, pi
|
||||
from build123d import *
|
||||
|
||||
from ocp_vscode import show
|
||||
|
||||
|
||||
def _assertTupleAlmostEquals(self, expected, actual, places, msg=None):
|
||||
"""Check Tuples"""
|
||||
|
|
@ -673,6 +675,9 @@ class BuildLineTests(unittest.TestCase):
|
|||
|
||||
# Check coincidence, tangency with each arc
|
||||
_, p1, p2 = start_arc.distance_to_with_closest_points(l1)
|
||||
a1 = Axis(p1, start_arc.tangent_at(p1))
|
||||
a2 = Axis(p2, l1.tangent_at(p2))
|
||||
show(start_arc, l1, p1, p2, a1, a2)
|
||||
self.assertTupleAlmostEquals(tuple(p1), tuple(p2), 5)
|
||||
self.assertAlmostEqual(
|
||||
start_arc.tangent_at(p1).cross(l1.tangent_at(p2)).length, 0, 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue