You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was wondering how to generate a slanted cuboid?
From the examples:
c0 = pygalmesh.Cuboid([0, 0, -0.5], [3, 3, 0.5])
Instead of two axis-aligned points (like above) I have 8 points (vertices) that are not axis-aligned:
'x': [0.660624743,0.672140241,0.4975571,0.5090726,0.384073615,0.3955891,0.5471413,0.5586568],
'y': [2.25957084,2.22607946,2.36075163,2.32726049,2.20176816,2.168277,2.10058713,2.067096],
'z': [-0.005313486,0.08820513,0.05100126,0.144519866,0.008039415,0.10155803,-0.04827533,0.04524329]
I can guarantee that these are from a cuboid that is size .1x.2x.2 (but it has been rotated and thus not axis-aligned).
Beta Was this translation helpful? Give feedback.
All reactions