Skip to content

Commit 3710108

Browse files
committed
added a bloc creation test based on the nounding box of a list of entities
1 parent 176663c commit 3710108

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pyMagix3D as Mgx3D
2+
import pytest
3+
4+
def test_freeboundedtopo():
5+
ctx = Mgx3D.getStdContext()
6+
ctx.clearSession() # Clean the session after the previous test
7+
gm = ctx.getGeomManager ()
8+
tm = ctx.getTopoManager ()
9+
10+
gm.newVertex(Mgx3D.Point(-1.8, -.7, 1.2))
11+
gm.newVertex(Mgx3D.Point(-.7, .45, -.1))
12+
tm.newFreeBoundedTopoInGroup ("aaa", 3, ["Pt0000","Pt0001"])
13+
c = tm.getCoord("Som0007")
14+
assert c.getX() == -0.6999999
15+
assert c.getY() == 0.4500001
16+
assert c.getZ() == 1.2000001

0 commit comments

Comments
 (0)