examples: short headers
This commit is contained in:
1 parent
2591255694
commit
e23adf2a2d
13 files changed
+16
-36
No files matched your search
+2
-4
@@ -1,6 +1,5 @@
|
||||
-- examples/cad.luau: reads a small STEP file, walks its entity graph (references, complex instances), adds an entity
|
||||
-- and writes it back under another schema. Run from the repository root: luau examples/cad.luau
|
||||
-- Solid geometry (B-rep bodies, meshes) needs a kernel plug-in, F.plugins.brep: see docs/guide/cad.md.
|
||||
-- examples/cad.luau: read a STEP file, walk its entity graph, add an entity, write it as AP242 (docs/guide/cad.md).
|
||||
-- Solid geometry (B-rep bodies, meshes) needs a kernel plug-in, F.plugins.brep.
|
||||
local F = require("@rosetta")
|
||||
|
||||
local STEP = [[
|
||||
@@ -54,7 +53,6 @@ local si = assert(step.part(cad.entities[20], "SI_UNIT"))
|
||||
print("length unit:", si[1].enum, si[2].enum) -- MILLI METRE
|
||||
assert(si[1].enum == "MILLI")
|
||||
|
||||
-- the product name
|
||||
local product = cad.entities[step.byType(cad, "PRODUCT")[1]]
|
||||
print("product:", product.args[1], product.args[2])
|
||||
|
||||
|
||||
Reference in new issue
Block a user