How to make an elliptical torus ?

Help
2009-05-01
2013-04-22
  • Daniel Santos

    Daniel Santos - 2009-05-01

    From the "Introduction to mged" document, page 263, I am issuing a command to make a eto :

    in aEllipticalTorus eto 0 0 0  0 1 0  1  0 0 0.40000000000000002  0 0.20000000000000001 0

    It gives an error message:

    Error: ERROR, normal, axes, and radii must be greater than zero!

    The first 3 numbers are for the center, the next 3 for the normal vector, followed by the radius and two more vectors for the major an minor ellipse axis. (I am basing those on the origin)

    PS:
    Never mind the floating point numbers, its python that is outputting them in such a way.

     
    • Sean Morrison

      Sean Morrison - 2009-05-02

      Daniel,

      It could be a typo in the tutorial, but one way to figure out what is going on is to run the 'in' command interactively.  Instead of typing out the whole line, just type 'in' and it'll start prompting you for each of the parameters:

      mged> in
      Enter name of solid: aEllipticalTorus
      Enter solid type: eto
      Enter X, Y, Z of vertex: 0 0 0
      Enter X, Y, Z, of normal vector: 0 1 0
      Enter radius of revolution, r: 1
      Enter X, Y, Z, of vector C: 0 0 .4
      Enter magnitude of elliptical semi-minor axis, d: 0
      ERROR, normal, axes, and radii must be greater than zero!
      in: ERROR eto not made!

      Cheers!
      Sean

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks