mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 00:01:09 -06:00
New TriangleMeshSlicer::cut() method
This commit is contained in:
parent
519ed91c68
commit
86f91bb3c4
8 changed files with 266 additions and 135 deletions
|
|
@ -52,7 +52,6 @@ static void stl_which_vertices_to_change(stl_file *stl, stl_hash_edge *edge_a,
|
|||
int *facet2, int *vertex2,
|
||||
stl_vertex *new_vertex1, stl_vertex *new_vertex2);
|
||||
static void stl_remove_degenerate(stl_file *stl, int facet);
|
||||
static void stl_add_facet(stl_file *stl, stl_facet *new_facet);
|
||||
extern int stl_check_normal_vector(stl_file *stl,
|
||||
int facet_num, int normal_fix_flag);
|
||||
static void stl_update_connects_remove_1(stl_file *stl, int facet_num);
|
||||
|
|
@ -1100,7 +1099,7 @@ Try using a smaller tolerance or don't do a nearby check\n"); */
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
stl_add_facet(stl_file *stl, stl_facet *new_facet)
|
||||
{
|
||||
stl->stats.facets_added += 1;
|
||||
|
|
|
|||
|
|
@ -180,4 +180,5 @@ extern void stl_allocate(stl_file *stl);
|
|||
static void stl_read(stl_file *stl, int first_facet, int first);
|
||||
extern void stl_facet_stats(stl_file *stl, stl_facet facet, int first);
|
||||
extern void stl_reallocate(stl_file *stl);
|
||||
extern void stl_add_facet(stl_file *stl, stl_facet *new_facet);
|
||||
extern void stl_get_size(stl_file *stl);
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ stl_initialize(stl_file *stl)
|
|||
stl->stats.number_of_parts = 0;
|
||||
stl->stats.original_num_facets = 0;
|
||||
stl->stats.number_of_facets = 0;
|
||||
stl->stats.facets_malloced = 0;
|
||||
stl->stats.volume = -1.0;
|
||||
|
||||
stl->neighbors_start = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue