@@ -73,6 +73,61 @@ const element = document.querySelector('dm-planimetrie');
73
73
element .setSelection ([' id1' , ' id2' , ' id3' ]);
74
74
```
75
75
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
+ <!--
76
131
## React Usage (dm-manager?)
77
132
78
133
```jsx
@@ -91,4 +146,6 @@ const PlanimetrieWrapper = () => {
91
146
);
92
147
};
93
148
94
- ```
149
+ ```
150
+
151
+ -->
0 commit comments