fix9
This commit is contained in:
1 parent
d74af3bf65
commit
8db3965e4d
3 files changed
+7
-5
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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" },
|
||||
};
|
||||
Reference in new issue
Block a user