Editing MGED CMD nmg
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: | ||
− | |||
− | |||
=nmg ''design'' = | =nmg ''design'' = | ||
__TOC__ | __TOC__ | ||
==Syntax== | ==Syntax== | ||
− | :nmg object | + | :nmg subcommand object [suffix] |
==Arguments== | ==Arguments== | ||
Line 23: | Line 21: | ||
:: Generates a manifold face in the first encountered shell of the NMG object. Vertices are listed as the ''suffix'' and define the winding-order of the face. Faces require at least three specified vertices, each specified by three coordinates. In addition to creating a face, the subcommand will join edges of the new face with dangling edges of other faces in the same shell. This makes it easier for the application to generate topologically correct, closed, manifold objects. | :: Generates a manifold face in the first encountered shell of the NMG object. Vertices are listed as the ''suffix'' and define the winding-order of the face. Faces require at least three specified vertices, each specified by three coordinates. In addition to creating a face, the subcommand will join edges of the new face with dangling edges of other faces in the same shell. This makes it easier for the application to generate topologically correct, closed, manifold objects. | ||
− | + | ==Proposed subcommands== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | : ''' create V ''' ''vertex-list'' | |
− | + | :: Creates vertices in first encountered region and shell, using the ''vertex-list''. For example: nmg myobject create V 0 0 0 0 1 0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 1 1 1 1 | |
− | + | : ''' create F ''' | |
− | + | :: Creates faces in first encountered region and shell. First, assigns a distinct color to each vertex in the model and assigns a corresponding enumeration. Command returns lines for each vertex. The line format is: vertex # (selectable by user), and vertex color. The output line text color is the vertex color for that line. The geometry viewer labels all vertices in their colors, until a ''face-list'' is entered at the subsequent prompt for input. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | : ''' | ||
− | :: Creates | ||
− | |||
− | |||
− | |||
− | |||
− | : ''' | ||
− | :: Creates | ||
::For example: | ::For example: | ||
− | ::: '''mged>''' | + | ::: '''mged>''' nmg myobject create F |
− | ::: '''mged>''' | + | ::: '''mged>''' F 4 5 6 7 F 0 1 6 5 F 1 2 7 6 F 2 3 4 7 F 0 5 4 3 |
− | + | : '''kregion''' | |
− | ''' | + | :: Removes the region and its geometry for the selected region. First, assigns a distinct color to each region in the model and assigns a corresponding enumeration. Command returns lines for each region. The line format is: region # (selectable by user), and region color. The output line text color is the region color for that line. The geometry viewer labels all regions in their colors, until the region is selected for removal at the subsequent prompt for input. |
+ | : '''kshell''' | ||
+ | :: Removes the shell and its geometry for the selected shell. First, assigns a distinct color to each shell in the model and assigns a corresponding enumeration. Command returns lines for each shell. The line format is: shell # (selectable by user), and shell color. The output line text color is the shell color for that line. The geometry viewer labels all shells in their colors, until the shell is selected for removal at the subsequent prompt for input. | ||
+ | : '''kface''' | ||
+ | :: Removes the faceuse and face geometry of the selected face. First, assigns a distinct color to each face in the model and assigns a corresponding enumeration. Command returns lines for each face. The line format is: face # (selectable by user), and face color. The output line text color is the face color for that line. The geometry viewer labels all faces in their colors, until the face is selected for removal at the subsequent prompt for input. | ||
+ | : '''kvertex''' | ||
+ | :: Removes the vertexuse and vertex geometry of the selected vertex. First, assigns a distinct color to each vertex in the model and assigns a corresponding enumeration. Command returns lines for each vertex. The line format is: vertex # (selectable by user), and vertex color. The output line text color is the vertex color for that line. The geometry viewer labels all vertices in their colors, until the vertex is selected for removal at the subsequent prompt for input. | ||
==Return Value(s)== | ==Return Value(s)== | ||
Line 70: | Line 52: | ||
--> | --> | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg mm cube |
:: Creates an empty NMG object. | :: Creates an empty NMG object. | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg cmface cube 0 0 0 0 1 0 1 1 0 1 0 0 |
:: Creates 1st face of a six-sided cube. | :: Creates 1st face of a six-sided cube. | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg cmface cube 1 0 1 0 0 1 0 1 1 1 1 1 |
:: Creates 2nd face of a six-sided cube. | :: Creates 2nd face of a six-sided cube. | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg cmface cube 0 0 0 0 1 0 0 1 1 0 0 1 |
:: Creates 3rd face of a six-sided cube. | :: Creates 3rd face of a six-sided cube. | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg cmface cube 0 1 0 1 1 0 1 1 1 0 1 1 |
:: Creates 4th face of a six-sided cube. | :: Creates 4th face of a six-sided cube. | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg cmface cube 1 1 0 1 0 0 1 0 1 1 1 1 |
:: Creates 5th face of a six-sided cube. | :: Creates 5th face of a six-sided cube. | ||
− | : '''mged>''' nmg cube | + | : '''mged>''' nmg cmface cube 0 0 0 0 0 1 1 0 1 1 0 0 |
:: Creates 6th face of a six-sided cube. | :: Creates 6th face of a six-sided cube. | ||