|
| bool | anonymous_namespace{NSVGUtils.cpp}::is_line (const float *p, float precision=1e-4f) |
| LinesPath | anonymous_namespace{NSVGUtils.cpp}::linearize_path (NSVGpath *first_path, const NSVGLineParams ¶m) |
| HealedExPolygons | anonymous_namespace{NSVGUtils.cpp}::fill_to_expolygons (const LinesPath &lines_path, const NSVGshape &shape, const NSVGLineParams ¶m) |
| HealedExPolygons | anonymous_namespace{NSVGUtils.cpp}::stroke_to_expolygons (const LinesPath &lines_path, const NSVGshape &shape, const NSVGLineParams ¶m) |
| ExPolygonsWithIds | Slic3r::create_shape_with_ids (const NSVGimage &image, const NSVGLineParams ¶m) |
| | Convert .svg opened by nanoSvg to shapes stored in expolygons with ids.
|
| Polygons | Slic3r::to_polygons (const NSVGimage &image, const NSVGLineParams ¶m) |
| | - Parameters
-
| is_y_negative | Flag is y negative, when true than y coor is multiplied by -1 |
|
| void | Slic3r::bounds (const NSVGimage &image, Vec2f &min, Vec2f &max) |
| NSVGimage_ptr | Slic3r::nsvgParseFromFile (const std::string &filename, const char *units, float dpi) |
| std::unique_ptr< std::string > | Slic3r::read_from_disk (const std::string &path) |
| NSVGimage_ptr | Slic3r::nsvgParse (const std::string &file_data, const char *units, float dpi) |
| NSVGimage * | Slic3r::init_image (EmbossShape::SvgFile &svg_file) |
| size_t | Slic3r::get_shapes_count (const NSVGimage &image) |
| | Iterate over shapes and calculate count.
|
| Point::coord_type | anonymous_namespace{NSVGUtils.cpp}::to_coor (float val, double scale) |
| bool | anonymous_namespace{NSVGUtils.cpp}::need_flattening (float tessTol, const Vec2f &p1, const Vec2f &p2, const Vec2f &p3, const Vec2f &p4) |
| void | anonymous_namespace{NSVGUtils.cpp}::flatten_cubic_bez (Points &points, float tessTol, const Vec2f &p1, const Vec2f &p2, const Vec2f &p3, const Vec2f &p4, int level) |
| | Convert cubic curve to lines Inspired by nanosvgrast.h function nsvgRasterize -> nsvg__flattenShape -> nsvg__flattenCubicBez https://github.com/memononen/nanosvg/blob/f0a3e1034dd22e2e87e5db22401e44998383124e/src/nanosvgrast.h#L335.
|
| Polylines | anonymous_namespace{NSVGUtils.cpp}::to_dashes (const Polyline &polyline, const DashesParam ¶m) |