Skip to content

Commit 5b8ce29

Browse files
committed
chore: uploaded new model and docs
1 parent 63f0b1b commit 5b8ce29

File tree

7 files changed

+58220
-216913
lines changed

7 files changed

+58220
-216913
lines changed

README.md

+58-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,61 @@ const element = document.querySelector('dm-planimetrie');
7373
element.setSelection(['id1', 'id2', 'id3']);
7474
```
7575

76+
## SketchUp Model Export
77+
78+
- Export the model from the SketchUp web app using the "Collada" exporter and set the following options
79+
80+
- \*Export two-sided faces: Yes
81+
82+
- \*Export edges: Yes
83+
84+
- \*Triangulate all faces: Yes
85+
86+
- Export hidden geometry: No
87+
88+
- \*Preserve component hierarchy: Yes
89+
90+
- \*Export texture maps: Yes
91+
92+
- Preserve credits: No
93+
94+
The one with \* are the important ones.
95+
96+
- Extract the generated `.zip` file
97+
98+
- This contains the main `.dae` file and a folder containing the embedded textures
99+
100+
- Now edit main `.dae` file and fix the textures directory. `Ctrl+F` for "Wood_", one of the results will look like the following
101+
102+
```xml
103+
<init_from>643caea7-fcbc-458d-b235-41120140542b/Wood_Bamboo_Medium.jpg</init_from>
104+
```
105+
106+
and change it to just
107+
108+
```xml
109+
<init_from>Wood_Bamboo_Medium.jpg</init_from>
110+
```
111+
112+
or just run the following command
113+
114+
```bash
115+
sed 's#<init_from>[^\/]*/#<init_from># dm.dae > dm-patched.dae'
116+
```
117+
118+
- Then gzip the file using
119+
120+
```bash
121+
gzip -9 -c dm-patched.dae > dm.dae.gz
122+
```
123+
124+
- In the end put `dm.dae.gz` and all the textures inside `public/`
125+
126+
127+
128+
rename the main `.dae` file to
129+
130+
<!--
76131
## React Usage (dm-manager?)
77132
78133
```jsx
@@ -91,4 +146,6 @@ const PlanimetrieWrapper = () => {
91146
);
92147
};
93148
94-
```
149+
```
150+
151+
-->

public/dm.dae public/dm-v1.dae

File renamed without changes.

public/dm-v1.dae.gz

1.13 MB
Binary file not shown.

public/dm-v2.dae

+58,162
Large diffs are not rendered by default.

public/dm-v2.dae.gz

1.15 MB
Binary file not shown.

public/dm.dae.gz

14.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)