@@ -334,9 +334,10 @@ def test_commit(speos: Speos):
334334
335335 # Prerequisites: a source and a sensor are needed (bug also a rootpart and optical property)
336336 root_part = p .create_root_part ()
337- root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" ).set_vertices ([0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]).set_facets (
338- [0 , 1 , 2 ]
339- ).set_normals ([0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ])
337+ face = root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" )
338+ face .vertices = [0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]
339+ face .facets = [0 , 1 , 2 ]
340+ face .normals = [0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ]
340341 root_part .commit ()
341342
342343 opt_prop = p .create_optical_property (name = "Material.1" )
@@ -388,9 +389,10 @@ def test_reset(speos: Speos):
388389
389390 # Prerequisites: a source and a sensor are needed (bug also a rootpart and optical property)
390391 root_part = p .create_root_part ()
391- root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" ).set_vertices ([0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]).set_facets (
392- [0 , 1 , 2 ]
393- ).set_normals ([0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ])
392+ face = root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" )
393+ face .vertices = [0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]
394+ face .facets = [0 , 1 , 2 ]
395+ face .normals = [0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ]
394396 root_part .commit ()
395397
396398 opt_prop = p .create_optical_property (name = "Material.1" )
@@ -440,9 +442,10 @@ def test_direct_modify_after_reset(speos: Speos):
440442
441443 # Prerequisites: a source and a sensor are needed (bug also a rootpart and optical property)
442444 root_part = p .create_root_part ()
443- root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" ).set_vertices ([0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]).set_facets (
444- [0 , 1 , 2 ]
445- ).set_normals ([0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ])
445+ face = root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" )
446+ face .vertices = [0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]
447+ face .facets = [0 , 1 , 2 ]
448+ face .normals = [0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ]
446449 root_part .commit ()
447450
448451 opt_prop = p .create_optical_property (name = "Material.1" )
@@ -494,9 +497,10 @@ def test_inverse_modify_after_reset(speos: Speos):
494497
495498 # Prerequisites: a source and a sensor are needed (bug also a rootpart and optical property)
496499 root_part = p .create_root_part ()
497- root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" ).set_vertices ([0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]).set_facets (
498- [0 , 1 , 2 ]
499- ).set_normals ([0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ])
500+ face = root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" )
501+ face .vertices = [0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]
502+ face .facets = [0 , 1 , 2 ]
503+ face .normals = [0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ]
500504 root_part .commit ()
501505
502506 opt_prop = p .create_optical_property (name = "Material.1" )
@@ -548,9 +552,10 @@ def test_interactive_modify_after_reset(speos: Speos):
548552
549553 # Prerequisites: a source and a sensor are needed (bug also a rootpart and optical property)
550554 root_part = p .create_root_part ()
551- root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" ).set_vertices ([0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]).set_facets (
552- [0 , 1 , 2 ]
553- ).set_normals ([0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ])
555+ face = root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" )
556+ face .vertices = [0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]
557+ face .facets = [0 , 1 , 2 ]
558+ face .normals = [0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ]
554559 root_part .commit ()
555560
556561 opt_prop = p .create_optical_property (name = "Material.1" )
@@ -602,9 +607,10 @@ def test_delete(speos: Speos):
602607
603608 # Prerequisites: a source and a sensor are needed (bug also a rootpart and optical property)
604609 root_part = p .create_root_part ()
605- root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" ).set_vertices ([0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]).set_facets (
606- [0 , 1 , 2 ]
607- ).set_normals ([0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ])
610+ face = root_part .create_body (name = "Body.1" ).create_face (name = "Face.1" )
611+ face .vertices = [0 , 1 , 0 , 0 , 2 , 0 , 1 , 2 , 0 ]
612+ face .facets = [0 , 1 , 2 ]
613+ face .normals = [0 , 0 , 1 , 0 , 0 , 1 , 0 , 0 , 1 ]
608614 root_part .commit ()
609615
610616 opt_prop = p .create_optical_property (name = "Material.1" )
0 commit comments