ws-3d3-d: model/ldraw (LDR / DAT / MPD read: parts as shared meshes per colour, sub-models as nodes, BFC, LDConfig colours, library paths through files / resolve)
Built-in colour table from LDConfig.ldr (CC BY 2.0 / 4.0, licenses/LDRAW_COLOURS.txt + NOTICE.md row). Tests: independent Python expansion + LeoCAD OBJ export of library parts / car.ldr / pyramid.ldr (read from the nix store).
This commit is contained in:
1 parent
07dc6f7e84
commit
e3ac2f8b36
10 files changed
+1737
No files matched your search
@@ -422,6 +422,18 @@ local list: { Entry } = {
|
||||
return require("@formats/model/gltf")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "ldraw",
|
||||
category = "model",
|
||||
path = "model/ldraw",
|
||||
extensions = { "ldr", "mpd", "dat" },
|
||||
mime = { "application/x-ldraw", "application/x-multi-part-ldraw" },
|
||||
deps = { "core/Err", "core/Bytes", "core/Sniff", "Types" },
|
||||
caps = { decode = true, encode = false, materials = true, lines = true, instancing = true },
|
||||
load = function()
|
||||
return require("@formats/model/ldraw")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "obj",
|
||||
category = "model",
|
||||
|
||||
Reference in new issue
Block a user