Skip to content

Reply To: STL File position shifting

#7719
IboralalpI
Participant

Dear Adrian, sorry for the late response, my answer got blocked quite a few times.

After your response, I had a small trial with the IndicatorTranslate3D function inside the cylinder3d example. However, I couldn’t get it to work properly.

std::array<T,3> shift {0.5, 0., 0.};
STLreader<T>stlReader(“cylinder3d.stl”, converter.getConversionFactorLength(), 0.001);
IndicatorTranslate3D<T>stlReaderShifted(shift,stlReader);
IndicatorLayer3D<T>extendedDomain(stlReaderShifted,converter.getConversionFactorLength());

This gives the …/IndicatorF3D.hh:624 -> Assertion ‘_xLength>0 && _yLength>0 && _zLength>0’ failed.
Aborted

I tried to use the IndicatorTranslate3D inside the prepare geometry function, in some other parts of the code and with different IndicatorF3Ds but nothing worked. The rest of the code is just like the cylinder3d example. Am I missing something obvious?

Thank you in advance for your support.
Best,
Berkay