Editing User:Nmz787-brlcad
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 48: | Line 48: | ||
====RCC example via TGC==== | ====RCC example via TGC==== | ||
− | + | An rcc primitive is a special form of a tgc, you can reproduce a right-circular-cylinder at vertex 0,0,0 with height 10, and a base and top of radius 1 (both in the XY plane): | |
− | + | <code>in aaa.s tgc 0 0 0 0 0 10 1 0 0 0 1 0 1 1</code> | |
− | + | increasing the radius of the base and top to 5: | |
− | + | <code>in aaa.s tgc 0 0 0 0 0 10 5 0 0 0 5 0 5 5</code> | |
====breaking down the command==== | ====breaking down the command==== | ||
− | + | <code>in <name of primitive> tgc (base X, Y, Z) (height vector X,Y,Z) (ellipse base radius part A vector X,Y,Z) (ellipse base radius part B vector X,Y,Z) (top radius scalar C, restricted to same plane active in base part A) (top radius scalar D, restricted to same plane active in base part B)</code> | |
====elliptic cones in either X or Y directions==== | ====elliptic cones in either X or Y directions==== | ||
− | + | 5 in the X direction, 10 in the Y (same at the top) | |
− | + | <code>in aaa.s tgc 0 0 0 0 0 10 5 0 0 0 10 0 5 10</code> | |
− | + | 10 in the X direction, 5 in the Y (same at the top) | |
− | + | <code>in aaaa.s tgc 0 0 0 0 0 10 10 0 0 0 5 0 10 5</code> |