discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

rotate([45,45,0])

R
runsun
Sat, May 19, 2018 7:13 PM

The point I wanted to make is that such a statement

Ronaldo wrote

​​
Module ​pointervers(v) produces a rotation that brings [0,0,1] to v.

is a bit too simplified (thus misleading) for what pointervers(v) does, 'cos
other than "bringing [0,0,1] to v", it also makes a swing of the obj, which
is evident if you compare the the figures I attached.


$  Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText  ( OpenSCAD lexer ); $ Tips ; $ Snippets

--
Sent from: http://forum.openscad.org/

The point I wanted to make is that such a statement Ronaldo wrote > ​​ > Module ​pointervers(v) produces a rotation that brings [0,0,1] to v. is a bit too simplified (thus misleading) for what pointervers(v) does, 'cos other than "bringing [0,0,1] to v", it also makes a swing of the obj, which is evident if you compare the the figures I attached. ----- $ Runsun Pan, PhD $ libs: scadx , doctest , faces ( git ), offline doc ( git ), runscad.py ( 2 , git ), editor of choice: CudaText ( OpenSCAD lexer ); $ Tips ; $ Snippets -- Sent from: http://forum.openscad.org/
RP
Ronaldo Persiano
Sat, May 19, 2018 10:22 PM

@runsun

I agree with your observations. I just wanted to clarify that what you call
the "swing" produced by pointvers(v) is an additional rotation around axis
v (with an angle that depends on v). So it meets the requirement of
bringing [0,0,1] to v but adds another rotation on that. It is not a
minimum rotation like mine.

2018-05-19 20:13 GMT+01:00 runsun runsun@gmail.com:

The point I wanted to make is that such a statement

Ronaldo wrote

​​
Module ​pointervers(v) produces a rotation that brings [0,0,1] to v.

is a bit too simplified (thus misleading) for what pointervers(v) does,
'cos
other than "bringing [0,0,1] to v", it also makes a swing of the obj, which
is evident if you compare the the figures I attached.

@runsun I agree with your observations. I just wanted to clarify that what you call the "swing" produced by pointvers(v) is an additional rotation around axis v (with an angle that depends on v). So it meets the requirement of bringing [0,0,1] to v but adds another rotation on that. It is not a minimum rotation like mine. ‌ 2018-05-19 20:13 GMT+01:00 runsun <runsun@gmail.com>: > The point I wanted to make is that such a statement > > Ronaldo wrote > > ​​ > > Module ​pointervers(v) produces a rotation that brings [0,0,1] to v. > > is a bit too simplified (thus misleading) for what pointervers(v) does, > 'cos > other than "bringing [0,0,1] to v", it also makes a swing of the obj, which > is evident if you compare the the figures I attached. > >