Skip to content

Commit

Permalink
chore: uploaded new model and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aziis98 committed Mar 13, 2024
1 parent 63f0b1b commit 5b8ce29
Show file tree
Hide file tree
Showing 7 changed files with 58,220 additions and 216,913 deletions.
59 changes: 58 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,61 @@ const element = document.querySelector('dm-planimetrie');
element.setSelection(['id1', 'id2', 'id3']);
```

## SketchUp Model Export

- Export the model from the SketchUp web app using the "Collada" exporter and set the following options

- \*Export two-sided faces: Yes

- \*Export edges: Yes

- \*Triangulate all faces: Yes

- Export hidden geometry: No

- \*Preserve component hierarchy: Yes

- \*Export texture maps: Yes

- Preserve credits: No

The one with \* are the important ones.

- Extract the generated `.zip` file

- This contains the main `.dae` file and a folder containing the embedded textures

- Now edit main `.dae` file and fix the textures directory. `Ctrl+F` for "Wood_", one of the results will look like the following

```xml
<init_from>643caea7-fcbc-458d-b235-41120140542b/Wood_Bamboo_Medium.jpg</init_from>
```

and change it to just

```xml
<init_from>Wood_Bamboo_Medium.jpg</init_from>
```

or just run the following command

```bash
sed 's#<init_from>[^\/]*/#<init_from># dm.dae > dm-patched.dae'
```

- Then gzip the file using

```bash
gzip -9 -c dm-patched.dae > dm.dae.gz
```

- In the end put `dm.dae.gz` and all the textures inside `public/`



rename the main `.dae` file to

<!--
## React Usage (dm-manager?)
```jsx
Expand All @@ -91,4 +146,6 @@ const PlanimetrieWrapper = () => {
);
};
```
```
-->
File renamed without changes.
Binary file added public/dm-v1.dae.gz
Binary file not shown.
58,162 changes: 58,162 additions & 0 deletions public/dm-v2.dae

Large diffs are not rendered by default.

Binary file added public/dm-v2.dae.gz
Binary file not shown.
Binary file modified public/dm.dae.gz
Binary file not shown.
Loading

0 comments on commit 5b8ce29

Please # to comment.