26 | | |
27 | | Also, check for "sqrt: DOMAIN error" for density=2. |
28 | | |
29 | | Test with: |
30 | | {{{ |
31 | | frams "var m=Model.newFromString(\"//0\np:sh=1,ry=1\n\"); var mg=ModelGeometry.forModel(m); mg.geom_density=2; Simulator.print(mg.sizesAndAxes());" -q |
32 | | }}} |
33 | | |
34 | | Visual Studio output: |
35 | | |
36 | | {{{ |
37 | | > var m=Model.newFromString("//0\np:sh=1,ry=1\n"); var mg=ModelGeometry.forModel(m); mg.geom_density=2; Simulator.print(mg.sizesAndAxes()); |
38 | | Script.Message: [(2.0,2.0,2.0),Orient@(-0,1,0)] |
39 | | }}} |
40 | | |
41 | | C++Builder output: |
42 | | |
43 | | {{{ |
44 | | sqrt: DOMAIN error |
45 | | |
46 | | sqrt: DOMAIN error |
47 | | |
48 | | sqrt: DOMAIN error |
49 | | Script.Message: [(2.0,2.0,2.0),Orient@(-0,1,0)] |
50 | | }}} |