Difference between revisions of "MGED CMD nmg"

m
(Example(s))
Line 37: Line 37:
 
==Example(s)==
 
==Example(s)==
 
<!--
 
<!--
: '''mged&gt;''' brep obj.brep info F 0
 
:: Output information for the 0th face of obj.brep.
 
: '''mged&gt;''' brep obj.brep plot S 0-2
 
:: Plot the 0th to 2nd surfaces of obj.brep.
 
: '''mged&gt;''' brep sph1.brep intersect sph2.brep 0 0
 
:: Intersect sph1.brep's 0th surface with sph2.brep's 0th surface. (When there's no intersection type specified, we compute SS intersections)
 
 
: '''mged&gt;''' brep obj.s obj.brep
 
: '''mged&gt;''' brep obj.s obj.brep
 
:: Convert implicit primitive obj.s to BREP form named obj.brep.
 
:: Convert implicit primitive obj.s to BREP form named obj.brep.
 
-->
 
-->
 +
 +
: '''mged&gt;''' nmg mm box
 +
:: Creates an empty nmg object.
 +
: '''mged&gt;''' nmg cmface box 0 0 0 0 1 0 1 1 0 1 0 0
 +
:: Creates 1st face of a six-faced box.
 +
: '''mged&gt;''' nmg cmface box 1 0 1 0 0 1 0 1 1 1 1 1
 +
:: Creates 2nd face of a six-faced box.
 +
: '''mged&gt;''' nmg cmface box 0 0 0 0 1 0 0 1 1 0 0 1
 +
:: Creates 3rd face of a six-faced box.
 +
: '''mged&gt;''' nmg cmface box 0 1 0 1 1 0 1 1 1 0 1 1
 +
:: Creates 4th face of a six-faced box.
 +
: '''mged&gt;''' nmg cmface box 1 1 0 1 0 0 1 0 1 1 1 1
 +
:: Creates 5th face of a six-faced box.
 +
: '''mged&gt;''' nmg cmface box 0 0 0 1 0 0 0 0 1 0 1 1
 +
:: Creates 6th face of a six-faced box.
  
 
==See Also==
 
==See Also==

Revision as of 18:54, 15 July 2015

nmg design

Syntax

nmg subcommand object [suffix]

Arguments

object
Name for the primitive that you want to operate on.
subcommand
Command specified to alter an NMG object. Each has it's own set of arguments.

Subcommands

mm
Creates a new NMG model structure and fills the appropriate fields. The result is an empty model.
cmface
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

sface
Selects a face by highlighting it. Subsequent commands for manipulation or removal act on the selected face. By repeating this call, the currently selected face is advanced to the next face in the NMG object of the first encountered shell and region. If an (optional) point is specified, the subcommand finds the closest face to the point and selects that face instead.
deselect
Deselects all prior selected parts of the nmg object.
kface
Removes the geometry and faceuse of the currently selected face.

Return Value(s)

No Return Values for this command.

Description

The "nmg" command is a command for creating, adding geometry, and manipulating NMG objects in BRL-CAD. All operations are result in the addition of manifold geometry to the object.

Example(s)

mged> nmg mm box
Creates an empty nmg object.
mged> nmg cmface box 0 0 0 0 1 0 1 1 0 1 0 0
Creates 1st face of a six-faced box.
mged> nmg cmface box 1 0 1 0 0 1 0 1 1 1 1 1
Creates 2nd face of a six-faced box.
mged> nmg cmface box 0 0 0 0 1 0 0 1 1 0 0 1
Creates 3rd face of a six-faced box.
mged> nmg cmface box 0 1 0 1 1 0 1 1 1 0 1 1
Creates 4th face of a six-faced box.
mged> nmg cmface box 1 1 0 1 0 0 1 0 1 1 1 1
Creates 5th face of a six-faced box.
mged> nmg cmface box 0 0 0 1 0 0 0 0 1 0 1 1
Creates 6th face of a six-faced box.

See Also

put for use with NMG objects
brep
polygon mesh