combine translate and rotate
Closed this issue · 6 comments
MaierJuerg commented
in openscad I use:
translate([10,0,5])
rotate([0,90,0])
cylinder(d=50, h=200);
can't figure out how to write that with solid as it is not accepting this statement:
translate((10,0,5))rotate((0,90,0))(cylinder(d=50, h=200))
jeff-dh commented
cylinder(...).translate(...).rotate(...)
or:
rotate(...)(translate(...)(cylinder(...)))
and / or take a look at the examples....
05.09.2024 10:33:42 MaierJuerg ***@***.***>:
…
in openscad I use:
*translate([10,0,5])
rotate([0,90,0])
cylinder(d=50, h=200);
*
can't figure out how to write that with solid as it is not accepting this statement:
*translate((10,0,5))rotate((0,90,0))(cylinder(d=50, h=200))*
—
Reply to this email directly, view it on GitHub[#211], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAINZEKPI7R6HKEN2JHQ76DZVAJOLAVCNFSM6AAAAABNV6VN22VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYDOMJTHE3DGNY].
You are receiving this because you are subscribed to this thread.
[Verfolgungsbild][https://github.com/notifications/beacon/AAINZEINKMAOPU43QSDXT3LZVAJOLA5CNFSM6AAAAABNV6VN22WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJK37KGU.gif]
MaierJuerg commented
I have installed solid as pip install solidpython
it is version 1.1.3 and I run it with python 3.12 on ubuntu
rotate(...) will add a colon ; after the command making it useless!
runtime error for .rotate
'cylinder' object has no attribute 'rotate'
jeff-dh commented
https://github.com/jeff-dh/SolidPython/blob/master-2.0.0-beta-dev/solid2/examples/05-access-style-syntax.py
https://github.com/jeff-dh/SolidPython/blob/master-2.0.0-beta-dev/solid2/examples/04-convenience.py
05.09.2024 11:46:27 MaierJuerg ***@***.***>:
…
I have installed solid as pip install solidpython
it is version 1.1.3 and I run it with python 3.12 on ubuntu
rotate(...) will add a colon ; after the command making it useless!
runtime error for .rotate
'cylinder' object has no attribute 'rotate'
—
Reply to this email directly, view it on GitHub[#211 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAINZEITP7A4MRV7ESLF5R3ZVAR7DAVCNFSM6AAAAABNV6VN22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZRGA3TSMZZGY].
You are receiving this because you commented.
[Verfolgungsbild][https://github.com/notifications/beacon/AAINZEKCMU55SDAINIC5AALZVAR7DA5CNFSM6AAAAABNV6VN22WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUK6FZOI.gif]
MaierJuerg commented
thanks but these examples use solid2. how to install that?
jeff-dh commented
https://github.com/jeff-dh/SolidPython/wiki
05.09.2024 13:06:00 MaierJuerg ***@***.***>:
…
thanks but these examples use solid2. how to install that?
—
Reply to this email directly, view it on GitHub[#211 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAINZEP2N73KOAEYDU73P2LZVA3JNAVCNFSM6AAAAABNV6VN22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZRGIZTSOJVGA].
You are receiving this because you commented.
[Verfolgungsbild][https://github.com/notifications/beacon/AAINZENYS5KMYPK66AHYN7LZVA3JNA5CNFSM6AAAAABNV6VN22WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUK6PTA4.gif]
MaierJuerg commented
Great, thanks, looks much better now!