Preparing geometry¶
USC reads geometry made in other programs, such as Rhino, Blender or a GIS. It does not repair it: most problems are fixed faster in the program the model came from. This page says what a file should look like before you import it, and what Inspect checks for you.
What each input is for¶
- Maximum volume: the largest building you would allow on the site. USC carves it.
- Test surfaces: the windows, facades, roofs or ground whose sun or daylight is protected.
- Context: buildings and large trees that stay. They block sun and sky.
- Terrain: the ground. It blocks sun and sky; the site stays buildable above it.
The Site step says more about each box.
A file USC reads¶
- Formats: PLY, OBJ, STL, GLB or DXF. A file in another format (Rhino, SketchUp, IFC, DWG, STEP, GIS data and others) is refused with a message that says what to export instead.
- Units: metres. A DXF is read in its drawing units (millimetres, centimetres, inches and feet become metres). Other formats hold no units, so a model in millimetres comes in 1,000 times too large; the Site step warns when the overall size does not look like metres.
- Axes: Z up. A GLB is the exception: glTF is Y up, and USC turns it, so export a GLB with the exporter's default axes.
- Coordinates: metres, near zero or georeferenced in a projected system. Never degrees of longitude and latitude: reproject in a GIS first. Inspect notes coordinates more than 10 km from zero.
- One export for the whole model: files exported from one model in one session line up. Files that come from different sources need the same origin and units before you import them.
The maximum volume¶
Model it as closed bodies. Bodies may touch or overlap: the voxels fill them as one volume. A missing floor or a small gap does not change the voxels either.
Test surfaces¶
- Model each surface as a flat face, facing the side where the sun and sky should be read. A surface that is not flat, or has no area, is left out of a run; Inspect says how many and draws them in red.
- Normals often come out the wrong way in an export. Inspect shows the back of a surface in orange, and lets you flip surfaces without going back to the modelling program. Find surfaces facing into the context finds the surfaces that lie on the context and face into it, which a run cannot trust (Inspect).
- A surface inside a mass, one standing free, one facing the maximum volume and one facing up (ground under a building, a courtyard floor) are fine: Inspect does not flag them.
Context and terrain¶
Check the heights of the context before you import it: USC uses them as they are. The direction the context's faces point is not read.
Fixing problems in the modelling program¶
| What you see | Where to fix it |
|---|---|
| The model lies on its side | Export with Z up (an OBJ from a Y-up program), or a GLB with the exporter's default axes |
| The model is mirrored | Mirror it back before export |
| The model is 1,000, 100 or about 3.3 times too large | Export in metres, or scale it before export |
| The model floats above or sits below the ground | Move it in Z before export |
| Files do not line up | Export them from one model, with one origin |