Difference between revisions of "MGED CMD nmg collapse"

From BRL-CAD
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:MGED|nmg collapse]]
+
[[Category:MGED|Nmg collapse]]
 
+
[[Category:MGED object generators|Nmg collapse]]
 
=nmg_collapse=
 
=nmg_collapse=
 
__TOC__
 
__TOC__

Latest revision as of 23:41, 3 January 2010

nmg_collapse[edit]

Syntax[edit]

nmg_collapse old_nmg_shape new_nmg_shape maximum_error_dist [minimum_angle]


Argument(s)[edit]

old_nmg_shape
Valid BRL-CAD NMG Primitive
new_nmg_shape
Name for new NMG Primitive
maximum_error_dist
Max Error value used for edge deletion.
[minimum_angle]
Minimum edge angle value used for edge deletion.


Return Value(s)[edit]

No Return Values for this command.


Description[edit]

The "nmg_collapse" command simplifies an existing nmg_shape by a process of edge decimation. Each edge in the old_nmg_shape is considered; if it can be deleted without creating an error greater than the specified maximum_error_dist, then that edge is deleted. If a minimum_angle is specified (degrees), then the edge will not be deleted if it would create a triangle with an angle less than minimum_angle. The resulting shape is saved in new_nmg_shape. The old_nmg_shape must have been triangulated previous to using the nmg_collpase command. The resulting shape consists of all triangular faces.


Example(s)[edit]

mged> nmg_collapse nmg_old nmg_new 1.0 10.0
Decimate edges in nmg_old to produce an NMG with an error no greater than 1.0 units. The process will not create any triangles with an angle less than 10˚. The new NMG shape will be named nmg_new.


See Also[edit]

nmg_simplify

Page Generated by David Loman on: 10/11/2007 at: 1:54:28 PM