Editing MgedFAQ

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 1: Line 1:
* See this [[Msgid1010480|page]] for the history of the following data.
+
* Note: The following is from a thread on the BRL-CAD help forum
 +
(http://sourceforge.net/mailarchive/message.php?msg_id=1010480):
  
== Editing, viewing, and correcting objects ==
+
A user on the BRL-CAD help forum recently asked twenty rather
 +
insightful and detailed questions regarding MGED that I felt would be
 +
a good idea to share with those on the mailing lists as well.  Some of
 +
the questions frequently come up in discussion, so hopefully these
 +
answers will be of use to many others out there as well.  Also, note
 +
that some of the questions are covered in the BRL-CAD tutorial series
 +
available at http://brlcad.org under the Documents section.  Users are
 +
encouraged to suggest other documents and documentation that would be
 +
of use.  As always, if folks aren't happy with an answer or state of
 +
affairs, please feel free to post a feature request at
 +
https://sourceforge.net/tracker/?group_id=3D105292&atid=3D640805 (with
 +
one request per submission and lots of detail).  The questions from
 +
this particular user along with my answers are provided in following
 +
below.
 +
 
 +
:Cheers!
 +
 
 +
:Sean
 +
 
 +
----
  
 
'''Q1:'''
 
'''Q1:'''
Line 7: Line 27:
 
:way I'm doing it is by making inner and outer walls using rcc and trc
 
:way I'm doing it is by making inner and outer walls using rcc and trc
 
:primitives, and I have figured out that I need to make a combination
 
:primitives, and I have figured out that I need to make a combination
:of the two, then hide the primitives and draw the comb, and then do ''rt''
+
:of the two, then hide the primitives and draw the comb, and then do rt
:to see the finished product. That's fine. But if I
+
:to see the finished product. That's all well and good. But if I
 
:translate or rotate the inner wall, for example, away from the point
 
:translate or rotate the inner wall, for example, away from the point
 
:of creation, I cannot seem to figure out a way to restore it to its
 
:of creation, I cannot seem to figure out a way to restore it to its
Line 24: Line 44:
  
 
----
 
----
 
== Matrix editing objects ==
 
  
 
'''Q2:'''
 
'''Q2:'''
Line 47: Line 65:
  
 
----
 
----
 
== Resetting object vertex (V) ==
 
  
 
'''Q3:'''
 
'''Q3:'''
Line 61: Line 77:
  
 
----
 
----
 
== Editing general cone radii ==
 
  
 
'''Q4:'''
 
'''Q4:'''
Line 79: Line 93:
  
 
----
 
----
 
== Editing solid parameters A and B ==
 
  
 
'''Q5:'''
 
'''Q5:'''
Line 101: Line 113:
  
 
----
 
----
 
== Picking combination and primary objects ==
 
  
 
'''Q6:'''
 
'''Q6:'''
Line 114: Line 124:
 
:just lacking a drop-down box because there are generally '''way''' too
 
:just lacking a drop-down box because there are generally '''way''' too
 
:many primitives for that to be a useful selection mechanism with any
 
:many primitives for that to be a useful selection mechanism with any
:real model and its use is often discouraged for other reasons (it's
+
:real model and it's use is often discouraged for other reasons (it's
:'''very''' susceptible to human error that in ways that are difficult to
+
:'''very''' succeptible to human error that in ways that are difficult to
 
:recover from--use with caution).  Type the name of the primitive
 
:recover from--use with caution).  Type the name of the primitive
 
:you wish to edit into the 'Name:' field and hit enter.  The values
 
:you wish to edit into the 'Name:' field and hit enter.  The values
Line 121: Line 131:
  
 
----
 
----
 
== Translating objects ==
 
  
 
'''Q7:'''
 
'''Q7:'''
 
:When trying to translate a combination, where is the 'Z move'? I
 
:When trying to translate a combination, where is the 'Z move'? I
 
:see only 'X move', 'Y move', 'XY move'. Answer: You may have to select
 
:see only 'X move', 'Y move', 'XY move'. Answer: You may have to select
:the combination and use the ''translate'' or ''tra'' commands to reposition
+
:the combination and use the translate or tra commands to reposition
 
:the object.
 
:the object.
  
Line 145: Line 153:
  
 
----
 
----
 
== Copying text from the command window ('journal') ==
 
  
 
'''Q8:'''
 
'''Q8:'''
Line 165: Line 171:
  
 
----
 
----
 
== Fitting view to window ==
 
  
 
'''Q9:'''
 
'''Q9:'''
Line 181: Line 185:
  
 
----
 
----
 
== Cutting a solid to make a combination ==
 
  
 
'''Q10:'''
 
'''Q10:'''
Line 198: Line 200:
  
 
----
 
----
 
== Panning the view ==
 
  
 
'''Q11:'''
 
'''Q11:'''
Line 210: Line 210:
 
:answer is "yes".  You can raytrace from any azimuth/elevation as well
 
:answer is "yes".  You can raytrace from any azimuth/elevation as well
 
:as from any arbitrary view whether ''panned'' or not.  By default in
 
:as from any arbitrary view whether ''panned'' or not.  By default in
:mged, when you run ''rt', it will invoke the raytracer with a view that
+
:mged, when you run rt, it will invoke the raytracer with a view that
 
:matches the geometry window's view so if you're not in an edit mode,
 
:matches the geometry window's view so if you're not in an edit mode,
 
:you can change the view to whatever you want without editing or
 
:you can change the view to whatever you want without editing or
Line 216: Line 216:
  
 
----
 
----
 
== Translating objects away from visible axes ==
 
  
 
'''Q12:'''
 
'''Q12:'''
Line 234: Line 232:
  
 
----
 
----
 
== Interrogate ''mged'' for axis changes ==
 
  
 
'''Q13:'''
 
'''Q13:'''
Line 249: Line 245:
  
 
----
 
----
 
== Creating a plane (2D) object ==
 
  
 
'''Q14:'''
 
'''Q14:'''
Line 268: Line 262:
  
 
----
 
----
 
== Creating a non-smooth surface ==
 
  
 
'''Q15:'''
 
'''Q15:'''
:How do you make a non-smooth surface such as a corrugated circular
+
:How do you make a nonsmooth surface such as a corrugated circular
 
:surface surrounding a cylinder?
 
:surface surrounding a cylinder?
  
Line 290: Line 282:
  
 
----
 
----
 
== Constraining angles of rotated components ==
 
  
 
'''Q16:'''
 
'''Q16:'''
Line 307: Line 297:
  
 
----
 
----
 
== Repeating construction of an object (pattern editing) ==
 
  
 
'''Q17:'''
 
'''Q17:'''
Line 322: Line 310:
  
 
----
 
----
 
== Batching or scripting ''mged'' commands ==
 
  
 
'''Q18:'''
 
'''Q18:'''
Line 348: Line 334:
  
 
----
 
----
 
== Lighting and the ''mater'' command ==
 
  
 
'''Q19:'''
 
'''Q19:'''
Line 370: Line 354:
  
 
----
 
----
 
== Translating and rotating objects ==
 
  
 
'''Q20:'''
 
'''Q20:'''
 
:When I shift and rotate geometry around so that it fits into the
 
:When I shift and rotate geometry around so that it fits into the
:viewing area (a) does that actually reposition the geometry to a new
+
:viewing area, (a) does that actually reposition the geometry to a new
:place, or is that just visual; (b) is there a 'reset' or 'undo'
+
:place, or is that just visual? (b) Is there a 'reset' or 'undo'
:command to reset the geometry to its original position; and (c) is there a way
+
:command to reset the geometry to its original position? Is there a way
 
:to precisely re-zero the geometry?
 
:to precisely re-zero the geometry?
  

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)