| Changelog | New inspection tools: angle measurement, a layer slider for G-code, Clay, Normals and X-ray shading, and export to 3MF, PLY and USDZ. Measurements, statistics and exports now use each model's real unit, so a glTF figure measures in metres and an STL part in millimetres. FBX readings change: they follow the file's own unit, centimetres by default, so most FBX models read 10× larger than in 3.7.x, which is their correct size. Textures a model names by a full path from the machine that exported it, such as C:\…\wood.jpg, are found beside the model, and a texture that is not one of the model's files is never requested.
Four inspection tools: angle measurement, a layer slider for G-code, Clay, Normals and X-ray shading, and export to 3MF, PLY and USDZ.
Added
- Angle measurement. The measurement panel has a Distance / Angle switch. In Angle mode, three clicks measure the angle at the second one, in degrees, and changing the length unit leaves it alone. A second click on the point just picked, usually a double click, is not taken, since it would leave the angle without a side. Angles are shared like distances: everyone who can open the model sees them, with their author, and anyone who can edit it can delete them. They are stored as a note type of their own, so a viewer older than this one skips them instead of drawing them as a distance. The annotations JSON export includes angles, and import restores them, whichever mode the panel is in.
- A layer slider for G-code, in the Analyze section of the tools panel, for files with more than one layer. It shows the print up to the chosen layer, with that layer's height, and "Only this layer" shows that layer alone. A Z-hop counts as part of its layer rather than as a layer of its own. Each step changes only the layers it passes, so dragging across a vase-mode print with tens of thousands of layers stays smooth. The slider and the switch work from the keyboard.
- Clay, Normals and X-ray shading, in the Scene section of the tools panel. Clay shows the shape of the surface in each part's colour, Normals shows which way each face points, which makes dents and flipped faces stand out, and X-ray makes the parts see-through to show the inside of an assembly. The model's own materials are not changed: exports use them, Send to Slicer included, and so do thumbnails, so a model opened while X-ray is on still gets a normal thumbnail. The shading stays on when you open the next model.
- Export to 3MF, PLY and USDZ. 3MF, which slicers open, is written with Z up, and its parts are closed solids, so a slicer does not have to repair them. PLY is binary and keeps vertex colours. USDZ opens in AR Quick Look on iPhone and iPad. Both 3MF and USDZ come out at the model's real size: glTF, IFC, COLLADA, X3D, VRML and dotbim models are taken to be in metres, Rhino, 3MF and FBX models in the unit their file says, and STL, OBJ, CAD and the other formats in millimetres. A model with no surfaces, such as a G-code toolpath, gets a message instead of an empty file. The exporters themselves load only when an export starts.
Fixed
- Measurements and model statistics took every model to be in millimetres, so a 1.8 m glTF figure measured "1.800 mm", and its surface area and volume were a million and a billion times too small. They now use the model's own unit, the same one the 3MF and USDZ exports use: a distance, the bounding box and Copy Measurements read in metres for a glTF, IFC or COLLADA model, and areas and volumes follow as square and cubic units. STL, OBJ, STEP and the other millimetre formats read exactly as before, and angles are unchanged. Both unit pickers now start in the model's own unit (metres for a glTF, millimetres for an STL) until you pick one. Your pick is kept as you open other models in the 3D Viewer app, and is not saved: reloading the page starts again from the model's own unit. "Generic Units" shows the numbers in the model's file, unconverted. The comparison table converts each model from its own unit, so a glTF and an STL of the same part compare as the same size. Shared measurements are stored as points on the model, so they need no change and show the right reading.
- 3MF files written in a unit other than millimetres opened at the wrong size: three.js reads a 3MF file's
unit and never applies it, so a file in metres was a thousandth of its size, measured wrong and exported wrong. The unit (micron, millimeter, centimeter, inch, foot or meter) is now read from the file, so measurements are right and a metre 3MF exports and opens again at its real size. The model is shown as before. Only the start of the file's model part is read for it, and in linear time, so a crafted file cannot stall the page.
- FBX readings now follow the file's own unit,
UnitScaleFactor, which is centimetres when a file does not say. In 3.7.x every FBX was read as millimetres, so every FBX model, small ones included, now reads 10× larger than it did (more for a file in metres or inches): that is its correct size. FBX models larger than 50 units also measured and exported at a fraction of their size, because the viewer shrinks such a model to fit its lighting; that is now undone for measurements, statistics and export. FBX models are shown exactly as before.
- OBJ models larger than 1000 units, a metre for an OBJ in millimetres, measured, reported and exported at 1000 mm whatever their size: the viewer shrinks such a model to fit, and the shrinking was not undone. A 5 m OBJ now reads 5000 mm. Such models read differently from 3.7.x, and correctly; they are shown as before.
- G-code toolpaths drew the travel moves the parser leaves out. Each layer was drawn as a single connected line through all its moves, so a line joined the end of each move to the start of the next. Layers are now drawn as separate moves.
- Closing the measurement panel with one point picked left that point's marker in the scene. Markers were matched to measurements by their position in a list of pairs, so every later pair was off by one, and deleting a measurement could remove another one's markers. Each measurement now keeps track of what it drew, and an unused point's marker goes when the panel closes or the mode changes.
- Send to Slicer's PLY option always sent ASCII PLY: the binary option was passed where the exporter expects its callback. It now sends binary PLY.
- In Windows High Contrast mode, the tools panel's switches (Grid, Axes, Wireframe and the others) showed no difference between on and off, because their track was filled with a colour that the system palette replaces. They now have an outline, and a switch that is on is filled with the highlight colour.
- Models whose textures are named by a full path from the machine that exported them, such as
C:\Users\anna\textures\wood.jpg, file:///C:/textures/wood.jpg, \\server\share\wood.jpg or /home/anna/wood.jpg, opened untextured even with the texture right beside them, and got no thumbnail in Files. SketchUp, 3ds Max and some Blender exports write such paths in DAE, FBX, 3DS, OBJ/MTL and X3D files, and the app took them for files that are not beside the model. The texture is now looked for by its file name in the model's own folder, in the viewer, for background thumbnails and on public shares. This also covers glTF, an FBX that names its texture only in a video's Filename, and a material map written after options such as -bm 0.3. The folders the path names are never searched, and a texture that is not beside the model still leaves the thumbnail to the viewer.
Security
- Opening a DAE, 3DS, glTF or VRML model in the viewer requested any texture the model named that was not one of its own files, at the address the model gave. A texture written as
https://…, or as a Windows network path such as \\server\share\x.png, which the browser turns into http://server/…, made your browser contact a server the model's author chose, and only Nextcloud's Content Security Policy stood in the way. Such a texture is now never requested: the model is drawn without it. Thumbnails made in the background already refused these.
|