ws-3d2/step: cad/step (ISO 10303-21 read/write + injected B-rep plug-in)
- src/Formats/cad/step: Part 21 editions 1-3 parsed into Types.Cad fully in-library (header, named DATA sections,
complex instances, every parameter kind, string escapes to UTF-8, comments, ANCHOR/REFERENCE/SIGNATURE kept raw);
writer round-trips at the entity level (integral reals keep their real-ness via a list metatable mark).
- B-rep plug-in: a small injected table { read, write, tessellate } (or brep-luau's { Step, StepBrep, StepWrite, Tess }
as is), taken from opts.brep / opts.plugins.brep; Step.toBodies / fromBodies / tessellate (-> Scene, z up, mm).
- Types.luau: StepEntity gains optional parts (complex instances) and section (edition 3); backward compatible.
- init.luau (api): withHooks also passes opts.plugins = F.plugins to decoders/encoders unless given; new facades
F.cad.toBodies / fromBodies / tessellate (pass F.plugins, pcall, Err-wrapped). Backward compatible.
- tests/cad/step.luau + tools/fixtures/step.py: OCCT (gmsh) generated and public STEP files, Python census, OCCT reads
our output back, brep-luau through a generated tests/gen/.luaurc alias (luau only), fuzz.
- tools/bench.luau: step parse / write lines.
This commit is contained in:
1 parent
646d18f056
commit
443a7e45cb
12 files changed
+2154
-2
No files matched your search
@@ -266,6 +266,18 @@ local list: { Entry } = {
|
||||
return require("@formats/model/vox")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "step",
|
||||
category = "cad",
|
||||
path = "cad/step",
|
||||
extensions = { "step", "stp", "p21" },
|
||||
mime = { "model/step", "application/step", "application/p21" },
|
||||
deps = { "core/Err", "core/Bytes", "Types" },
|
||||
caps = { decode = true, encode = true, complexEntities = true, sections = true, brep = "plugin", tessellate = "plugin" },
|
||||
load = function()
|
||||
return require("@formats/cad/step")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "bmfont",
|
||||
category = "font",
|
||||
|
||||
Reference in new issue
Block a user