IMPORTFG4SECTION(nged)
create an object by importing the specified section
π 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
- 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