Repository navigation
Replies: 2 comments 7 replies
|
@hrgdavor did you come across this when messing with THREE as well? |
2 replies
|
@hrgdavor @z3dev can you point me in the right direction for how the console.log(rotate([degToRad(45), 0, 0], cuboid({size: [1,2,10], center: [2, 2, 2]})))Logs: {
polygons: ...
transforms: [1, 0, 0, 0, 0, 0.7071067811865476, 0.7071067811865475, 0, 0, -0.7071067811865475, 0.7071067811865476, 0, 0, 0, 0, 1]
}What do the 16 values represent? I was using How can I accurately map the transforms array to data like position, scale, rotation for use with a three mesh or elsewhere? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
@z3dev why are the axis' transposed vs THREEjs?
For example, rendering the
primitives3Dexample in each has them oriented differently with Z pointing upwards in JSCAD whereas Y points upwards in THREE:All reactions