Если при импорте stl-файла, в процессе рендеринга выдаёт ошибку.
import("EjeZ_soporte_inferior_izquierda.stl",10);
Вот эта ошибка:
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: pe_prev->is_border() || !internal::Plane_constructor::get_plane(pe_prev->facet(),pe_prev->facet()->plane()).is_degenerate() File: /data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_3/polyhedron_3_to_nef_3.h Line: 293
Отсюда следует, что нужно исправить модель в MeshLab.
Импортируем наш stl-файл, переходим по меню
Filters -> Cleaning and Repairing -> Remove T-Vertices by Edge-Flip
Ratio выставляем в 1000000, применяем и закрываем это диалоговое окно.Возможно, дополнительно придётся сделать исправления в NetFabb, либо до, либо после MeshLab.
После исправления данного файла вылезла другая ошибка:
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e->incident_sface() != SFace_const_handle() File: /data/OpenSCAD/libraries-mingw64-master/mxe-w64/usr/x86_64-w64-mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h Line: 326В итоге, оказалось проще перерисовать по контуру импортируемого STL.
Далее текст из ссылки:
Why is my imported STL file only showing up with F5 but not F6?
This is mostly caused by bad STL files, the best bet is to verify the STL file in a tool like Blender MeshLab or NetFabb and fix the issues. In essence the model needs to be manifold to be processed in OpenSCAD.
The reason for the model still showing up in preview mode is that there is no real geometry calculation going on yet. The preview simply draws the triangles from the STL.
There is one specific issue that causes problems called "Zero faces" (meaning the STL contains triangles with zero area because all 3 points are on one line) which are currently not handled well in OpenSCAD. This can be fixed in MeshLab using
Filters -> Cleaning and Repairing -> Remove T-Vertices by Edge-Flip
.
Set the Ratio to a very high value (e.g. 1000000), otherwise it's possible the model gets distorted.
See also http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Modeling/PrintToolbox