PUT(nged)

mged command which creates a new object of indicated type with supplied attributes. Similar to the in command, but without prompting - making it especially useful for scripting.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’– PUT(nged) β€” put πŸ’–

okay bestie, so this is <pink>put</pink>, a BRL-CAD User Command that lives in mged (the nged manual, iykyk) ✨


🌸 NAME 🌸

put β€” the mged command that creates a new object of indicated type with the attributes you supply 🫢 It's literally the in command, except no prompting β€” which makes it especially useful for scripting, no cap πŸ’…

ngl, this is the one you want when you're automating stuff. in asks questions, put does not. periodt.

πŸŽ€ SYNOPSIS πŸŽ€

put {object type} [attrs]...

✨ DESCRIPTION ✨

So it creates a new object of the type you indicate πŸ’– Here's the thing though β€” object attributes are per-object dependent, meaning every type does its own thing 😭 There are some similarities among different object types, like how both sph and ell have a vertex 'V' β€” cute, right? πŸ¦‹

To find out the possible attributes and how to form your parameters correctly, use the form command πŸ‘‘

Possible values for type are:

  • annot β€” 2d annotations
  • arb8 β€” ARB (eight vertices)
  • arbn β€” ARB (n vertices)
  • ars β€” Arbitrary faceted solid
  • binunif β€” Uniform-array binary object
  • bot β€” bag of triangles
  • brep β€” Boundary Representation
  • cline β€” Cline element
  • comb β€” Combination
  • constrnt β€” Constraint
  • datum β€” Datum set
  • dsp β€” Displacement map
  • ebm β€” Extruded bitmap
  • ehy β€” Elliptical Hyperboloid
  • ell β€” Ellipsoid
  • epa β€” Elliptical Paraboloid
  • eto β€” Elliptical Torus
  • extrude β€” 2d Extrusion
  • grip β€” Support for joints
  • half β€” Half space
  • hrt β€” Heart
  • hyp β€” Hyperboloid
  • joint β€” Joint
  • material β€” Material
  • metaball β€” Metaball
  • nmg β€” Non-Manifold Geometry
  • part β€” Particle
  • pipe β€” Pipe
  • pnts β€” Collection of points
  • poly β€” Polygon
  • rec β€” Truncated General Cone (right elliptical cylinder)
  • revolve β€” Truncated general revolve
  • rhc β€” Right Hyperbolic Cylinder
  • rpc β€” Right Parabolic Cylinder
  • script β€” Procedural script
  • sketch β€” 2d sketch
  • sph β€” Ellipsoid (sphere)
  • submodel β€” Instanced submodel
  • superell β€” Superquadratic Ellipsoid
  • tgc β€” Truncated General Cone
  • tor β€” Torus
  • vol β€” 3d volume

like, that's a lot of types bestie πŸ“ but you got this πŸ’œ


πŸ¦‹ EXAMPLES πŸ¦‹

The following are run from the MGED command prompt πŸ’«

Example 1. Create a sphere.

mged> put ball sph V {0 0 0} A {100 0 0} B {0 100 0} C {0 0 100}

Creates a sphere named "ball", centered at (0,0,0), and with radius 100 πŸ”₯ ate, honestly πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

BRL-CAD Team


πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§ (yes, electronic mail, they're being fancy πŸ™ˆ)


okay bestie, real talk: since put doesn't prompt you for anything, if you form your attributes wrong it's not gonna hold your hand 😭 hit up form first, fr fr.

πŸ’– that's the whole page!! πŸ’– courtesy of BRL-CAD and this PUT(nged) page β€” go build something iconic bestie, ily πŸŽ€πŸ«Άβœ¨

πŸ“¦ where this page comes from