IMPORTFG4SECTION(nged)

create an object by importing the specified section

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’– IMPORTFG4SECTION (nged) πŸ’–

okay bestie, so this one lives in the BRL-CAD User Commands fam (the manual is literally nged), and it's genuinely such a vibe β€” you hand it a chunk of raw FASTGEN4 text and it hands you back a whole 3D object. iconic behavior tbh ✨


✨ NAME ✨

importfg4section β€” makes a brand-new object for you by importing whatever section you point it at 🫢


🌸 SYNOPSIS 🌸

importfg4section obj "section_data"

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜•: the importfg4section command parses a FASTGEN4 section β€” which you give it as one single multi-line string, no cap β€” and uses that to build a fresh BOT (Bag of Triangles) primitive. yes, a literal bag of triangles. main character energy πŸ’…

It gets the structural geometry data out by parsing these record types from the string you passed:

  • GRID β€” the vertex coordinates πŸ“
  • CTRI β€” triangular faces πŸ”Ί
  • CQUAD β€” quadrilateral faces πŸ”·

and here's the slay part: any quadrilateral faces (CQUAD) get automatically split into two triangular faces for you. no extra work, it just happens 😌✨ The finished geometry gets saved into the database under the obj name you picked.


πŸŽ€ The arguments πŸŽ€

  • obj β€” the name of the shiny new BOT primitive you want to create πŸ’–
  • "section_data" β€” a string holding the raw FASTGEN4 section data that's gonna get parsed. keep it quoted, bestie, it's multi-line πŸ™ˆ

πŸ”₯ EXAMPLES πŸ”₯

Example 1. Importing FASTGEN4 geometry data ⭐

mged> importfg4section wing.bot $fg4_data_string

This one creates a new BOT primitive named wing.bot by parsing the raw FASTGEN4 geometry records stashed away in the variable $fg4_data_string. look at her go πŸ˜­πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the ones who made it happen 🫢


πŸ’€ BUG REPORTS πŸ’€

Found a bug? a problem? something acting sus? πŸ› Not me gatekeeping β€” reports should be submitted via electronic mail to devs@brlcad.org fr fr. They wanna hear it πŸ’Œ


ngl this page is short and sweet, but every single detail up there is load-bearing. don't sleep on the CQUAD auto-split, it's giving convenience 🎁

and that's the whole page, bestie πŸ§šβ€β™€οΈ this was IMPORTFG4SECTION(nged), brought to you by BRL-CAD β€” go make some triangles βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from