Commit Graph
39 Commits
Author SHA1 Message Date
Mark Hindess d961970828 Add missing use for dirname. 2014-06-14 22:54:57 +01:00
Mark Hindess 59ebdebf72 Revert "Fix crash reported by Simooon on #Slic3r."
It turns out this helped on the version of stable I was using
but not on master.

This reverts commit 8df6e2d930.
2014-02-16 14:00:28 +00:00
Mark Hindess 8df6e2d930 Fix crash reported by Simooon on #Slic3r.
Error was:

  Argument "" isn't numeric in subroutine entry at
    lib/Slic3r/GUI/OptionsGroup.pm line 392
2014-02-16 12:05:01 +00:00
Mark Hindess f523c095b1 Trivial fix for support-related undefined sub errors. 2013-09-24 09:54:23 +01:00
Mark Hindess 98ad345e42 Fix broken logic in $ARGV[0] check. 2013-09-16 14:04:14 +01:00
Mark Hindess b5426ad297 Revert "Optimization: simplify fill_surfaces before the offset operation"
To workaround issue #1325 and possibly #1320.

This reverts commit 3a046e3411.
2013-07-16 10:44:52 +01:00
Mark Hindess 7979dd9e9c Avoid expensive TriangleMesh BUILD method during clone.
Gives 6% speedup and uses less memory when slicing yoda.stl and should
give significantly bigger speedup on more complex models and plates.
2013-05-13 21:27:55 +01:00
Mark Hindess 8c26f0da30 Avoid memory leaks by breaking reference cycle: Print -> Fill -> Print 2013-04-18 22:49:43 +01:00
Mark Hindess aac2c45450 Avoid merging meshes when there is only one mesh to merge.
When slicing yoda.stl it reduces peak memory usage by 5% and speeds up
slicing by 13%.
Further optimization using a simple proxy to implement the two methods
(size/extends) needed on the merge meshes is also possible and
undoubtedly worthwhile.
2013-04-18 19:50:05 +01:00
Mark Hindess 407de02fe4 Use binary search for get_layer_range.
Gives a 13% speed up on Teethy_Tiki.stl (thing:49334) with default settings
on my laptop.
When $self->layers->[0]->slice_z == $min_z the returned $min_layer value is
0 rather than the (incorrect?) -1 returned by the old code.
2013-04-18 19:29:05 +01:00
Mark Hindess 51d140d7d7 Fix dependencies to require Math::Clipper 1.18.
To avoid error "Undefined subroutine &Math::Clipper::int_offset ...".
2013-04-18 18:56:55 +01:00
Mark Hindess 6019836eef Avoid uninitialized value in concatenation at line 347. 2012-12-06 20:39:03 +00:00
Mark Hindess 705d6b3179 Quick fix for support material. 2012-11-02 22:39:08 +00:00
Mark Hindess 145572c87a Fix occurrences of ARRAY(...) in usage output.
Defaults are only one element otherwise I'd have been tempted to set
$" to comma.
2012-07-12 22:07:54 +01:00
Mark Hindess 35ecd65e77 Implement nearest point index and split at index to avoid search for point. 2012-07-02 20:26:56 +01:00
Mark Hindess 35fda7de23 Revert "split_at_first_point needn't call deserialize as split_at calls it."
This reverts commit a6d8d6473c.
2012-07-02 16:57:29 +01:00
Mark Hindess 60ca76ff05 Oops. Somehow I missed this when doing interactive add. 2012-07-01 22:35:52 +00:00
Mark Hindess ca78bbd88a Use Slic3r::Geometry polyline_lines rather than duplicate implementation.
If it is good enough for polygons, it should be good enough for polylines.
2012-07-01 23:15:17 +01:00
Mark Hindess b11778a85f polygon_lines returns array of Slic3r::Line objects so bless is redundant. 2012-07-01 23:14:04 +01:00
Mark Hindess a6d8d6473c split_at_first_point needn't call deserialize as split_at calls it. 2012-07-01 22:52:13 +01:00
Mark Hindess 07f2dab5f6 Fix perimeters_* options to be singular to be consistent. 2012-06-30 23:18:15 +01:00
Mark Hindess b4a21bea40 Fix for #499. 2012-06-29 17:02:37 +01:00
Mark Hindess 4d1551c305 Reduce memory usage during gcode output by discarding processed layers.
As each layer is processed, it increases in size by a factor of two
or three so by the end the layer list gets quite big.  So this removes
the list entry after it's been processed.
2012-06-29 12:33:30 +01:00
Mark Hindess 2e1649e6b5 Comment out code that builds @vertices_facets data structure.
Saves memory and speeds up reading large models.
2012-06-28 19:58:21 +01:00
Mark Hindess cc330932d6 Revert "Simple remote interface to slic3r using plack."
This reverts commit a3af688173.
2012-06-27 17:58:27 +01:00
Mark Hindess a3af688173 Simple remote interface to slic3r using plack.
Only supports a single stl model but supporting other file formats and
merge would be quite simple.  Speed might mean requests timeout if
slicing takes too long.  Just a proof-of-concept really but I might
use it to slice on my server from my laptop.
2012-06-27 17:42:34 +01:00
Mark Hindess a49827f5ab Revert "Fix license to match README."
This reverts commit 7d858338fa.

At least xnaron's perl doesn't like 'agpl3'.
2012-06-27 07:15:30 +01:00
Mark Hindess 840752194f Speed up encloses_point calls from medial_axis code.
The points shouldn't be on hole borders so we can make the check
much quicker.  Gives over 50% speed up slicing reprap shot glass
(thing:11944) with default settings and 0.3 layer height.
2012-06-26 23:11:46 +01:00
Mark Hindess 7d858338fa Fix license to match README. 2012-06-25 23:00:50 +01:00
Mark Hindess 1d3f7e0b1c Trivia: Remove duplicate word "speed". 2012-06-25 22:57:05 +01:00
Mark Hindess a4de0e659d Trivial typo/grammar. 2012-06-25 22:51:20 +01:00
Mark Hindess f61a1f5a07 Create *::Geometry::nearest_point_index to speed up shortest_path method.
This fix gives a further 10% speedup on simcop2387's coaster.
2012-06-22 23:12:39 +01:00
Mark Hindess 62eb41b967 Manage flattened endpoint list rather than creating it at every iteration.
Gives an 8% speedup on simcop2387's coaster for me.
2012-06-22 23:12:39 +01:00
Mark Hindess 2ef565fc4d Simplify creation of $n, @x and @y in point_in_polygon test.
Gives 30% speed up on simcop2387's coaster on my laptop and it cuts the
maximum resident set size too.  I know this is going to be replaced but
thought this might be useful in the meantime.
2012-06-16 08:28:37 +01:00
Mark Hindess 2689f49ef8 Remove grep that is effectively repeated. 2012-05-31 18:15:40 +01:00
Mark Hindess b0303c1e3b Allow cli options to use '_' instead of '-'.
This makes it easier to copy and paste options from config files.
2012-05-20 17:01:40 +01:00
Mark Hindess 5a16756aac Avoid undef errors while keeping the debug so root cause can be found. 2012-05-10 22:23:24 +01:00
Mark Hindess 9d85a19b9d Rework fix to use undef correctly. 2012-05-10 19:07:20 +01:00
Mark Hindess 5ebf6a71cd Add FE_NONE with value 0 and increment FE_TOP and FE_BOTTOM to simplify
and correct logic.
2012-05-09 19:57:00 +01:00