Editing MGED CMD brep

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 5: Line 5:
 
:brep object info [S|F|T|E|SB|TB] [index]
 
:brep object info [S|F|T|E|SB|TB] [index]
 
:brep object plot [S|I|SN|KN|F|F2d|SBB|SBB2d|TD|T|T2d|TBB|TBB2d|E|SCV] [index]
 
:brep object plot [S|I|SN|KN|F|F2d|SBB|SBB2d|TD|T|T2d|TBB|TBB2d|E|SCV] [index]
:brep object intersect object2 i j [PP|PC|PS|CC|CS|SS]
+
:brep object intersect object2 i j [max_dis]
 
:brep object [brepname]
 
:brep object [brepname]
 
:brep comb [suffix]
 
:brep comb [suffix]
:brep object curve [create|in|inter|remove|move|set_cv|flip|insert_knot|trim|split|join]
 
:brep object surface [create|birail|remove|move|set_cv|trim|split|tensor]
 
  
 
==Argument(s)==
 
==Argument(s)==
Line 51: Line 49:
 
:: Plot a specific 'surface's leafs' in '2d-space'.
 
:: Plot a specific 'surface's leafs' in '2d-space'.
  
: '''TD'''
+
: '''TD''
 
:: Plot a specific 'trim direction'.
 
:: Plot a specific 'trim direction'.
  
Line 78: Line 76:
 
:: Intersect object2's jth surface.
 
:: Intersect object2's jth surface.
  
: '''PP'''
+
: '''max_dis'''
:: Point-point intersections.
+
:: A number to control the output intersection curves.
 
 
: '''PC'''
 
:: Point-curve intersections.
 
 
 
: '''PS'''
 
:: Point-surface intersections.
 
 
 
: '''CC'''
 
:: curve-curve intersections.
 
 
 
: '''CS'''
 
:: curve-surface intersections.
 
 
 
: '''SS'''
 
:: surface-surface intersections (default).
 
  
 
: '''brepname'''
 
: '''brepname'''
Line 104: Line 87:
 
: '''suffix'''
 
: '''suffix'''
 
:: The suffix in the generated BREPs' names.
 
:: The suffix in the generated BREPs' names.
 
: '''create'''
 
:: Create a new NURBS curve or surface.
 
 
: '''in'''
 
:: Create a new NURBS curve or surface given detailed description.
 
 
: '''inter'''
 
:: Create a new NURBS curve interpolating given control vertices.
 
 
: '''remove'''
 
:: Remove a NURBS curve or surface.
 
 
: '''move'''
 
:: Move a NURBS curve or surface to a specified position.
 
 
: '''set_cv'''
 
:: Set the control vertex of a NURBS curve.
 
 
: '''flip'''
 
:: Flip the direction of a NURBS curve.
 
 
: '''insert_knot'''
 
:: Insert a knot into a NURBS curve.
 
 
: '''trim'''
 
:: Trim a NURBS curve using start and end parameters.
 
 
: '''split'''
 
:: Split a NURBS curve into two at a parameter.
 
 
: '''join'''
 
:: Join end of curve 1 to start of curve 2.
 
 
: '''birail'''
 
:: create a new NURBS surface using two curves.
 
 
: '''set_cv'''
 
:: set a control vertex of a NURBS surface to a specified position.
 
 
: '''trim'''
 
:: trim a NURBS surface using start and end parameters.
 
 
: '''split'''
 
:: split a NURBS surface into two given a parameter value.
 
 
: '''tensor'''
 
:: create a new NURBS surface by tensor product of two curves.
 
  
 
==Return Value(s)==
 
==Return Value(s)==
Line 158: Line 93:
  
 
==Description==
 
==Description==
: The "brep" command is a command for debugging the NURBS (BREP) functionality in BRL-CAD. It can output info information for a specific object, plot its surfaces, faces, etc., and test the implicit to NURBS conversion and surface-surface intersection functionality.
+
The "facetize" command creates new_object as a [[BRL-CAD_Primitives|BOT]] shape by tessellating all the primitive shapes in old_object and then performing any Boolean operations specified in old_object.
 +
 
  
 
==Example(s)==
 
==Example(s)==
: '''mged>''' brep obj.brep info F 0
+
: '''mged>''' facetize region1.nmg region1.r
:: Output information for the 0th face of obj.brep.
+
:: Create a facetized BOT version of existing object region1.r.
: '''mged>''' brep obj.brep plot S 0-2
+
 
:: Plot the 0th to 2nd surfaces of obj.brep.
 
: '''mged>''' 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>''' brep obj.s obj.brep
 
:: Convert implicit primitive obj.s to BREP form named obj.brep.
 
  
 
==See Also==
 
==See Also==
 
: No related commands.
 
: No related commands.

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)