Classes | |
| struct | SegmentLocalAxes |
| struct | Vertex |
| struct | CrossSection |
Public Member Functions | |
| ToolpathsObjExporter (const libvgcode::Viewer &viewer) | |
| void | export_to (const std::string &filename) |
Private Types | |
| enum | CornerType : unsigned char { RightTurn , LeftTurn , Straight } |
Private Member Functions | |
| SegmentLocalAxes | segment_local_axes (const Vec3f &v1, const Vec3f &v2) |
| CrossSection | cross_section (const Vec3f &v, const Vec3f &right, const Vec3f &up, float width, float height) |
| CrossSection | normal_cross_section (const Vec3f &v, const SegmentLocalAxes &axes, float width, float height) |
| CrossSection | corner_cross_section (const Vec3f &v, const SegmentLocalAxes &axes1, const SegmentLocalAxes &axes2, float width, float height, CornerType &corner_type) |
| void | export_segment (FILE &f, unsigned char flags, size_t v1_id, const libvgcode::PathVertex &v1, const libvgcode::PathVertex &v2, const libvgcode::PathVertex &v3) |
| size_t | vertex_id (int id) |
| void | export_vertex (FILE &f, const Vertex &v) |
| void | export_material (FILE &f, size_t material_id) |
| void | export_triangle (FILE &f, size_t v1, size_t v2, size_t v3) |
| void | export_materials (FILE &f) |
| size_t | color_id (size_t vertex_id) |
Private Attributes | |
| const libvgcode::Viewer & | m_viewer |
| size_t | m_vertices_count { 0 } |
| std::vector< libvgcode::Color > | m_colors |
Static Private Attributes | |
| static const unsigned char | Flag_First = 0x01 |
| static const unsigned char | Flag_Last = 0x02 |
| static const unsigned char | Flag_Internal = 0x04 |
| static const float | Cap_Rounding_Factor = 0.25f |
| struct Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes |
| struct Slic3r::GUI::ToolpathsObjExporter::CrossSection |
|
private |
|
inlineexplicit |
|
inlineprivate |
References libvgcode::DUMMY_COLOR, libvgcode::PathVertex::layer_id, m_colors, m_viewer, and vertex_id().
Referenced by export_segment().
|
inlineprivate |
References cross_section(), EPSILON, Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::forward, LeftTurn, Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::right, RightTurn, Straight, and Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::up.
Referenced by export_segment().
|
inlineprivate |
References Slic3r::GUI::ToolpathsObjExporter::CrossSection::bottom, Slic3r::GUI::ToolpathsObjExporter::CrossSection::left, Slic3r::GUI::ToolpathsObjExporter::Vertex::normal, Slic3r::GUI::ToolpathsObjExporter::Vertex::position, Slic3r::GUI::ToolpathsObjExporter::CrossSection::right, and Slic3r::GUI::ToolpathsObjExporter::CrossSection::top.
Referenced by corner_cross_section(), and normal_cross_section().
|
inlineprivate |
References Slic3r::f().
Referenced by export_segment().
|
inlineprivate |
References Slic3r::f(), and m_colors.
Referenced by export_to().
|
inlineprivate |
References Slic3r::GUI::ToolpathsObjExporter::CrossSection::bottom, Cap_Rounding_Factor, color_id(), libvgcode::convert(), corner_cross_section(), export_material(), export_triangle(), export_vertex(), Slic3r::f(), Flag_First, Flag_Last, Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::forward, libvgcode::PathVertex::height, Slic3r::GUI::ToolpathsObjExporter::CrossSection::left, m_vertices_count, normal_cross_section(), libvgcode::PathVertex::position, Slic3r::GUI::ToolpathsObjExporter::CrossSection::right, RightTurn, segment_local_axes(), Straight, Slic3r::GUI::ToolpathsObjExporter::CrossSection::top, vertex_id(), and libvgcode::PathVertex::width.
Referenced by export_to().
|
inline |
References export_materials(), export_segment(), Slic3r::FilePtr::f, Flag_First, Flag_Internal, Flag_Last, libvgcode::PathVertex::gcode_id, libvgcode::PathVertex::is_extrusion(), and m_viewer.
Referenced by Slic3r::GUI::GCodeViewer::export_toolpaths_to_obj().
|
inlineprivate |
References Slic3r::f().
Referenced by export_segment().
|
inlineprivate |
References Slic3r::f(), Slic3r::GUI::ToolpathsObjExporter::Vertex::normal, and Slic3r::GUI::ToolpathsObjExporter::Vertex::position.
Referenced by export_segment().
|
inlineprivate |
References cross_section(), Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::right, and Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::up.
Referenced by export_segment().
|
inlineprivate |
References Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::forward, Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::right, and Slic3r::GUI::ToolpathsObjExporter::SegmentLocalAxes::up.
Referenced by export_segment().
|
inlineprivate |
References m_vertices_count.
Referenced by color_id(), and export_segment().
|
staticprivate |
Referenced by export_segment().
|
staticprivate |
Referenced by export_segment(), and export_to().
|
staticprivate |
Referenced by export_to().
|
staticprivate |
Referenced by export_segment(), and export_to().
|
private |
Referenced by color_id(), and export_materials().
|
private |
Referenced by export_segment(), and vertex_id().
|
private |
Referenced by ToolpathsObjExporter(), color_id(), and export_to().