Skip to content

Reply To: stl units and format

#9639
talco
Participant

I found a mistake in my stlReader line, and since FreeCAD will assume on export that the units used in the model are in millimeters, i changed it to the following:

STLreader<T> stlReader( "MatVolIn.stl", converter.getConversionFactorLength(), 0.001 );

But I still get the same error:
============Terminal messages=====================
[prepareGeometry] Prepare Geometry …
[SuperGeometry3D] cleaned 0 outer boundary voxel(s)
[prepareGeometry] origin =
[prepareGeometry] [-0.01 0.005 0.005]
[prepareGeometry] Pextend =
[prepareGeometry] [0.02 -0.01 -0.01]
cylinder3d: ../../../src/functors/analytical/indicator/indicatorF3D.hh:643: olb::IndicatorCuboid3D<T>::IndicatorCuboid3D(olb::Vector<T, 3>, olb::Vector<T, 3>) [with S = double]: Assertion `_xLength>0 && _yLength>0 && _zLength>0′ failed.
Aborted (core dumped)
==============================================

But if i change the stlSize from 0.001 to larger than 0.01 i get the following error:
============Terminal messages=====================
[[prepareGeometry] Prepare Geometry … OK
[prepareLattice] Prepare Lattice …
Discrete Normal is not valid for interpolated pressure boundary!
==============================================