To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10009
  Mathematical assistance please
 
Hi, I'm a much better arithmetician than mathemetician and have hit a wall with LSynth. In an attempt to reduce file size, I've written an algorithm that merges hose segments together (based on an angle error limit). This dramatically reduces file (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
Hello Kevin, (...) What about using 4-4cyls primitives placed to the end of hose segments? Scale their length to (hose diameter)*tan(angle/2). See example for a 30° angle: (URL) and (URL) know, this is not a full solution, you need to rotate the (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Why not just work out the longest side of the cylinder you need, and extend the hose segments by that much on each end? That would reduce the file size even more. BTW, if you do decide to go with your solution, and come up with a result, you (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Hi Philo, Good to hear from you. My mistake.... I am using 4-4cyls.dat. rotating them to align them with the S0-S1-S2 plane is what I don't know how to do. Thanks, Kevin (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) It's hard work, but this page might help (URL) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Hi Roscoe, Thanks for the help. If you extend the cylinders so that the outside edges touch, you will be able to see the overlap.... at small angles, this works because the overlap is small, but at larger angles, the overlap is noticable. I (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
In lugnet.cad.dev, Ross Crawford wrote: <snip> (...) know how to come up with the rotation angle needed to twist the 4-4cyls.dat into the right position. One reason to push forward on my original solution is because the same knowledge can be used to (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Could you transform the co-ordinate system so that one of it's axes is along the centre-line of the 4-4cyls (in the plane S0-S1-S2), rotate it about that axis so that the longest sise is in the plane, then transform the co-ord system back? (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Or maybe another way to look at it (got this from old lecture notes): Goal: rotate about arbitrary vector A by alpha Idea: we know how to rotate about X,Y,Z So, rotate about Y by beta until A lies in the YZ plane Then rotate about X by gamma (...) (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Ooooops, I see now I was totally barking up the wrong tree, you need to WORK OUT the alpha angle, sorry. But transforming the co-ordinate system should still work. ROSCO (20 years ago, 6-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) OK, here's my VERY LAST word on the subject: Transforming both 4-4cyls S0-S1 and vector S1-S2: Rotate about Y by beta until S0-S1 lies in the YZ plane Rotate about X by gamma until S0-S1 coincides with +Z Rotate about Z by delta until S1-S2 (...) (20 years ago, 7-Jan-05, to lugnet.cad.dev, FTX)
 
  Re: Mathematical assistance please
 
(...) (snip) (...) I'll add 4-4cyls.dat, so that shouldn't hold you back. Also, in the coming version you can add primitives yourself. (...) Another way to achieve no overlap is the method I used in 30093.dat "Plant See Grass": I simply placed (...) (20 years ago, 7-Jan-05, to lugnet.cad.dev)
 
  Re: Mathematical assistance please
 
(...) Hi Lars. Hey, I've got an idea. Stop adding new features (for a little while) and just release it. ;^) Pretty please with extra sugar? (...) Nifty solution, but what if someone looks down the hose and sees it's all blocked up with spheres so (...) (20 years ago, 7-Jan-05, to lugnet.cad.dev)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR