Editing BRL-CAD Primitives

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 16: Line 16:
 
An '''arbitrary convex polyhedron''' ('''arb''') is a geometric volume that is completely enclosed by a set of 3-dimensional planes. Each has a set of straight-edged, flat '''faces''' outlined by the intersections of those planes. The intersection of each pair of planes is a line whose intersections with other planes defines a pair of '''vertices'''. The line segment between those two vertices is an '''edge''' of the polyhedron that is shared by two faces. Each vertex is common to an equal number (at least three) of faces and edges.
 
An '''arbitrary convex polyhedron''' ('''arb''') is a geometric volume that is completely enclosed by a set of 3-dimensional planes. Each has a set of straight-edged, flat '''faces''' outlined by the intersections of those planes. The intersection of each pair of planes is a line whose intersections with other planes defines a pair of '''vertices'''. The line segment between those two vertices is an '''edge''' of the polyhedron that is shared by two faces. Each vertex is common to an equal number (at least three) of faces and edges.
  
For example, a rectangular parallelepiped is enclosed by three orthogonal pairs of parallel planes. Their intersections define six faces, each with four edges and four vertices. There are a total of 12 edges (each shared by two faces) and 8 vertices (each shared by three faces and three edges).
+
For example, a rectangular parallelepiped is enclosed by three orthagonal pairs of parallel planes. Their intersections define six faces, each with four edges and four vertices. There are a total of 12 edges (each shared by two faces) and 8 vertices (each shared by three faces and three edges).
  
 
The BRL-CAD geometry file format defines two types of records for such polyhedra:
 
The BRL-CAD geometry file format defines two types of records for such polyhedra:
Line 26: Line 26:
 
== ARB8 Records ==
 
== ARB8 Records ==
  
An '''arb8''' record is specified by a set of eight {X, Y, Z} vertices designated V1 through V8, which need not all be unique. BRL-CAD uses such records to represent polyhedra having four, five or six faces:
+
An '''arb8''' record is specified by a set of eight {X, Y, Z} vertices designated V1 through V8, which need not all be unique. As discussed in the [[Creating and editing arb8 primitives]] article, BRL-CAD uses such records to represent polyhedra having four, five or six faces:
  
 
* '''arb8''' shapes have eight unique vertices. They represent '''hexahedra''' that have six quadrilateral faces sharing eight edges. In addition to simply specifying the {X, Y, Z} coordinates of those vertices, MGED provides easier ways to create the following specific types of hexahedra:
 
* '''arb8''' shapes have eight unique vertices. They represent '''hexahedra''' that have six quadrilateral faces sharing eight edges. In addition to simply specifying the {X, Y, Z} coordinates of those vertices, MGED provides easier ways to create the following specific types of hexahedra:
Line 215: Line 215:
  
  
==brep==
+
==nurb==
[[NURBS|see NURBS]]
+
Non-uniform rational b-spline
 +
;Handled by: none?
  
 
==spline==
 
==spline==
Line 223: Line 224:
  
 
==vol==
 
==vol==
 +
Contre le vol de clés, rien ne vaut un [http://www.infosafe.fr/Coffretacle/Coffretacle.htm Coffret à clés]
 
volume / voxel
 
volume / voxel
 
; Handled by: in  
 
; Handled by: in  
Line 244: Line 246:
 
;Handled by: make form(sketch editor) create
 
;Handled by: make form(sketch editor) create
 
;See also: [[sketch]]
 
;See also: [[sketch]]
 
==annot==
 
2D annotation primitive
 
;Handled by: in command
 
See: [[annot]]
 
  
 
==grip ==
 
==grip ==
Line 267: Line 264:
 
;Handled by: in create (not edit!)
 
;Handled by: in create (not edit!)
 
;Arguments: minor type (fdcsiLCSIL), data file, number of values
 
;Arguments: minor type (fdcsiLCSIL), data file, number of values
 
== submodel ==
 
Instanced Submodel
 
:Handled by: in make form create
 
:Arguments:
 
;file: File holding the referenced geometry. 0-length if geometry is in the same file.
 
;treetop: Single name for the geometry to reference.
 
A submodel is a reference to another geometry, possibly in a separate file.
 

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)