![]() |
Prusa Slicer 2.6.0
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <boost/log/trivial.hpp>#include "stl.h"
Include dependency graph for util.cpp:Go to the source code of this file.
Functions | |
| void | stl_verify_neighbors (stl_file *stl) |
| void | stl_translate (stl_file *stl, float x, float y, float z) |
| void | stl_translate_relative (stl_file *stl, float x, float y, float z) |
| void | stl_scale_versor (stl_file *stl, const stl_vertex &versor) |
| static void | calculate_normals (stl_file *stl) |
| static void | rotate_point_2d (float &x, float &y, const double c, const double s) |
| void | stl_rotate_x (stl_file *stl, float angle) |
| void | stl_rotate_y (stl_file *stl, float angle) |
| void | stl_rotate_z (stl_file *stl, float angle) |
| void | its_rotate_x (indexed_triangle_set &its, float angle) |
| void | its_rotate_y (indexed_triangle_set &its, float angle) |
| void | its_rotate_z (indexed_triangle_set &its, float angle) |
| void | stl_get_size (stl_file *stl) |
| void | stl_mirror_xy (stl_file *stl) |
| void | stl_mirror_yz (stl_file *stl) |
| void | stl_mirror_xz (stl_file *stl) |
| static float | get_area (stl_facet *facet) |
| static float | get_volume (stl_file *stl) |
| void | stl_calculate_volume (stl_file *stl) |
| void | stl_repair (stl_file *stl, bool fixall_flag, bool exact_flag, bool tolerance_flag, float tolerance, bool increment_flag, float increment, bool nearby_flag, int iterations, bool remove_unconnected_flag, bool fill_holes_flag, bool normal_directions_flag, bool normal_values_flag, bool reverse_all_flag, bool verbose_flag) |
References stl_file::facet_start, stl_stats::number_of_facets, stl_file::stats, stl_calculate_normal(), and stl_normalize_vector().
Referenced by stl_rotate_x(), stl_rotate_y(), and stl_rotate_z().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References stl_calculate_normal(), stl_normalize_vector(), and stl_facet::vertex.
Referenced by get_volume().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References stl_file::facet_start, get_area(), stl_stats::number_of_facets, and stl_file::stats.
Referenced by stl_calculate_volume().
Here is the call graph for this function:
Here is the caller graph for this function:| void its_rotate_x | ( | indexed_triangle_set & | its, |
| float | angle | ||
| ) |
References cos(), M_PI, rotate_point_2d(), sin(), and indexed_triangle_set::vertices.
Referenced by Slic3r::TriangleMesh::rotate().
Here is the call graph for this function:
Here is the caller graph for this function:| void its_rotate_y | ( | indexed_triangle_set & | its, |
| float | angle | ||
| ) |
References cos(), M_PI, rotate_point_2d(), sin(), and indexed_triangle_set::vertices.
Referenced by Slic3r::TriangleMesh::rotate().
Here is the call graph for this function:
Here is the caller graph for this function:| void its_rotate_z | ( | indexed_triangle_set & | its, |
| float | angle | ||
| ) |
References cos(), M_PI, rotate_point_2d(), sin(), and indexed_triangle_set::vertices.
Referenced by Slic3r::TriangleMesh::rotate(), and Slic3r::TriangleMesh::rotate().
Here is the call graph for this function:
Here is the caller graph for this function:Referenced by its_rotate_x(), its_rotate_y(), its_rotate_z(), stl_rotate_x(), stl_rotate_y(), and stl_rotate_z().
Here is the caller graph for this function:References get_volume(), stl_file::stats, stl_reverse_all_facets(), and stl_stats::volume.
Referenced by stl_repair(), and Slic3r::trianglemesh_repair_on_import().
Here is the call graph for this function:
Here is the caller graph for this function:References stl_stats::bounding_diameter, stl_file::facet_start, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, stl_stats::size, stl_file::stats, and stl_facet::vertex.
Referenced by stl_rotate_x(), stl_rotate_y(), stl_rotate_z(), stl_transform(), and stl_transform().
Here is the caller graph for this function:References stl_file::facet_start, stl_stats::facets_reversed, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, stl_file::stats, and stl_reverse_all_facets().
Here is the call graph for this function:References stl_file::facet_start, stl_stats::facets_reversed, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, stl_file::stats, and stl_reverse_all_facets().
Here is the call graph for this function:References stl_file::facet_start, stl_stats::facets_reversed, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, stl_file::stats, and stl_reverse_all_facets().
Here is the call graph for this function:| void stl_repair | ( | stl_file * | stl, |
| bool | fixall_flag, | ||
| bool | exact_flag, | ||
| bool | tolerance_flag, | ||
| float | tolerance, | ||
| bool | increment_flag, | ||
| float | increment, | ||
| bool | nearby_flag, | ||
| int | iterations, | ||
| bool | remove_unconnected_flag, | ||
| bool | fill_holes_flag, | ||
| bool | normal_directions_flag, | ||
| bool | normal_values_flag, | ||
| bool | reverse_all_flag, | ||
| bool | verbose_flag | ||
| ) |
References stl_stats::bounding_diameter, stl_stats::connected_facets_1_edge, stl_stats::connected_facets_2_edge, stl_stats::connected_facets_3_edge, stl_stats::edges_fixed, stl_stats::facets_w_1_bad_edge, stl_stats::facets_w_2_bad_edge, stl_stats::facets_w_3_bad_edge, stl_stats::number_of_facets, stl_stats::shortest_edge, stl_file::stats, stl_calculate_volume(), stl_check_facets_exact(), stl_check_facets_nearby(), stl_fill_holes(), stl_fix_normal_directions(), stl_fix_normal_values(), stl_remove_unconnected_facets(), stl_reverse_all_facets(), and stl_verify_neighbors().
Here is the call graph for this function:References calculate_normals(), cos(), stl_file::facet_start, M_PI, stl_stats::number_of_facets, rotate_point_2d(), sin(), stl_file::stats, and stl_get_size().
Here is the call graph for this function:References calculate_normals(), cos(), stl_file::facet_start, M_PI, stl_stats::number_of_facets, rotate_point_2d(), sin(), stl_file::stats, and stl_get_size().
Here is the call graph for this function:References calculate_normals(), cos(), stl_file::facet_start, M_PI, stl_stats::number_of_facets, rotate_point_2d(), sin(), stl_file::stats, and stl_get_size().
Here is the call graph for this function:| void stl_scale_versor | ( | stl_file * | stl, |
| const stl_vertex & | versor | ||
| ) |
References stl_file::facet_start, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, stl_stats::size, stl_file::stats, and stl_stats::volume.
Referenced by stl_scale().
Here is the caller graph for this function:References stl_file::facet_start, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, and stl_file::stats.
References stl_file::facet_start, stl_stats::max, stl_stats::min, stl_stats::number_of_facets, and stl_file::stats.
References stl_stats::backwards_edges, stl_file::facet_start, stl_file::neighbors_start, stl_stats::number_of_facets, stl_file::stats, and stl_write_facet().
Referenced by stl_repair(), and Slic3r::trianglemesh_repair_on_import().
Here is the call graph for this function:
Here is the caller graph for this function: