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.
π 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.inasks questions,putdoes 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 annotationsarb8β ARB (eight vertices)arbnβ ARB (n vertices)arsβ Arbitrary faceted solidbinunifβ Uniform-array binary objectbotβ bag of trianglesbrepβ Boundary Representationclineβ Cline elementcombβ Combinationconstrntβ Constraintdatumβ Datum setdspβ Displacement mapebmβ Extruded bitmapehyβ Elliptical Hyperboloidellβ Ellipsoidepaβ Elliptical Paraboloidetoβ Elliptical Torusextrudeβ 2d Extrusiongripβ Support for jointshalfβ Half spacehrtβ Hearthypβ Hyperboloidjointβ Jointmaterialβ Materialmetaballβ Metaballnmgβ Non-Manifold Geometrypartβ Particlepipeβ Pipepntsβ Collection of pointspolyβ Polygonrecβ Truncated General Cone (right elliptical cylinder)revolveβ Truncated general revolverhcβ Right Hyperbolic Cylinderrpcβ Right Parabolic Cylinderscriptβ Procedural scriptsketchβ 2d sketchsphβ Ellipsoid (sphere)submodelβ Instanced submodelsuperellβ Superquadratic Ellipsoidtgcβ Truncated General Conetorβ Torusvolβ 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: sinceputdoesn't prompt you for anything, if you form your attributes wrong it's not gonna hold your hand π hit upformfirst, 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
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms