From dc836ae7e4f7bf0c4ee4c932f624661bb4adea7b Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Fri, 25 Mar 2022 17:56:22 +0100 Subject: [PATCH] unit_cube from OCC --- python/occ.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python/occ.py b/python/occ.py index 29f95eb9..666c91ed 100644 --- a/python/occ.py +++ b/python/occ.py @@ -40,5 +40,13 @@ unit_square = OCCGeometry(unit_square_shape, dim=2) - +uc_shape = Box((0,0,0),(1,1,1)) +uc_shape.faces.Max(X).name = "front" +uc_shape.faces.Min(X).name = "back" +uc_shape.faces.Max(Y).name = "right" +uc_shape.faces.Min(Y).name = "left" +uc_shape.faces.Max(Z).name = "top" +uc_shape.faces.Min(Z).name = "bottom" +unit_cube = OCCGeometry(uc_shape) +