This commit is contained in:
Rodrigo Bertoldo de Sousa Martins committed 2026-09-08 14:48:45 -03:00
1 parent d74af3bf65
commit 8db3965e4d
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ async function download(fbx) {
console.log(`✓ já baixado: ${fbx}`);
return;
}
const url = RAW_BASE + fbx;
const url = RAW_BASE + encodeURIComponent(fbx);
console.log(`↓ baixando ${fbx}...`);
const res = await fetch(url);
if (!res.ok || !res.body) {
+4 -4
View File
@@ -3,10 +3,6 @@
// por sistema, com nomes de objeto reais em inglês. Servidos como blobs FBX
// binários comuns (não Git LFS), então dá para baixar via raw.githubusercontent.com.
//
// Deixamos de fora "Regions of human body100.fbx" e "Reference lines,
// planes and movements 1.fbx" nesta primeira importação (nomes com espaço,
// conteúdo mais voltado a navegação/didática do que estruturas discretas) —
// dá para adicionar depois seguindo o mesmo padrão.
export const RAW_BASE =
"https://raw.githubusercontent.com/LluisV/Z-Anatomy-Sample/main/Assets/Models/1.0%20Models/";
@@ -18,6 +14,8 @@ export const SOURCES = [
{ fbx: "VisceralSystem100.fbx", key: "visceral" },
{ fbx: "Joints100.fbx", key: "joints" },
{ fbx: "LymphoidOrgans100.fbx", key: "lymphoid" },
{ fbx: "Regions of human body100.fbx", key: "regions" },
{ fbx: "Reference lines, planes and movements 1.fbx", key: "reference" },
];
// Palavras-chave (substring, case-insensitive) que classificam um nó do
@@ -44,4 +42,6 @@ export const SOURCE_TARGETS = {
visceral: { modelFile: "visceral-organs.glb", system: null },
joints: { modelFile: "articular.glb", system: "articular" },
lymphoid: { modelFile: "linfatico.glb", system: "linfatico" },
regions: { modelFile: "regioes.glb", system: "regioes" },
reference: { modelFile: "referencias.glb", system: "referencias" },
};
+2
View File
@@ -11,4 +11,6 @@ export const SYSTEMS = [
{ slug: "articular", namePt: "Articulações", nameEn: "Joints", colorHex: "#38bdf8", order: 7 },
{ slug: "linfatico", namePt: "Sistema Linfático", nameEn: "Lymphatic System", colorHex: "#34d399", order: 8 },
{ slug: "tegumentar", namePt: "Sistema Tegumentar", nameEn: "Integumentary System", colorHex: "#e0a96d", order: 9 },
{ slug: "regioes", namePt: "Regiões Anatômicas do Corpo", nameEn: "Body Regions", colorHex: "#f472b6", order: 10 },
{ slug: "referencias", namePt: "Planos e Linhas de Referência", nameEn: "Reference Planes and Lines", colorHex: "#a3e635", order: 11 },
];