Skip to content

Commit 9b62e79

Browse files
committed
Fix horizontal and vertical points constraints
1 parent 2420160 commit 9b62e79

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

model/horizontal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def needs_wp(self):
3737

3838
def create_slvs_data(self, solvesys):
3939
wp = self.get_workplane()
40+
if self.entity2:
41+
return solvesys.horizontal(self.entity1.py_data, wp, self.entity2.py_data)
4042
return solvesys.horizontal(self.entity1.py_data, wp)
4143

4244
def placements(self):

model/vertical.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def needs_wp(self):
3636

3737
def create_slvs_data(self, solvesys):
3838
wp = self.get_workplane()
39+
if self.entity2:
40+
return solvesys.vertical(self.entity1.py_data, wp, self.entity2.py_data)
3941
return solvesys.vertical(self.entity1.py_data, wp)
4042

4143
def placements(self):

0 commit comments

Comments
 (0)