Permalink
Browse files

overhang detection basics

printlines know about layer and area (shell, infill etc.)
can show overhangs on layer display (debug setting)
  • Loading branch information...
1 parent 1cb4efa commit de4daaaa2ae839fc34b1f14c5fae7688b8833d7c @hurzl hurzl committed Apr 16, 2012
View
@@ -50,6 +50,8 @@ PKG_CHECK_MODULES(XMLPP, libxml++-2.6 >= 2.10.0)
# AC_SUBST(XMLPP_CFLAGS)
# AC_SUBST(XMLPP_LIBS)
+# PKG_CHECK_MODULES(GTS, gts >= 0.7.6)
+
AC_OPENMP()
dnl ------------------------------------------------------------------
View
@@ -30,7 +30,7 @@ There are currently no Repsnapper binaries pre-built for Linux. However, instal
=== Windows ===
-There are beta versions for Windows, see the "Downloads" on github. The Windows version cannot communicate with a printer and can only calculate on a single CPU.
+There are beta versions for Windows, see the https://github.com/timschmidt/repsnapper/downloads[Downloads section on github]. The Windows version cannot communicate with a printer and can only calculate on a single CPU.
Historians only: the v1 of Repsnapper for Windows is here: http://www.kulitorum.com/RepSnapperBeta.rar (Kulitorums version).
This is even older, but should work with tonokip and FiveD: http://svn.kulitorum.com/RepSnapper/MSVC9/Release/RepSnapper.exe[here].
View
@@ -886,6 +886,11 @@ int Model::drawLayers(double height, const Vector3d &offset, bool calconly)
settings.Hardware.LayerThickness,
settings.Display.DisplayinFill, false);
layer = m_previewLayer;
+ Layer * previous = calcSingleLayer(z-settings.Hardware.LayerThickness,
+ LayerNr-1,
+ settings.Hardware.LayerThickness,
+ false, false);
+ layer->setPrevious(previous);
}
if (!calconly) {
@@ -895,7 +900,8 @@ int Model::drawLayers(double height, const Vector3d &offset, bool calconly)
settings.Display.DrawCPLineNumbers,
settings.Display.DrawCPVertexNumbers,
settings.Display.DisplayinFill,
- settings.Display.DisplayDebuginFill);
+ settings.Display.DisplayDebuginFill,
+ settings.Display.ShowLayerOverhang);
if (settings.Display.DrawMeasures)
layer->DrawMeasures(measuresPoint);
View
@@ -13,33 +13,6 @@
<property name="short_label">Calibrate</property>
<property name="tooltip">An interactive calibration routine</property>
</object>
- <object class="GtkAdjustment" id="Display.HighlightAdjustment">
- <property name="upper">1</property>
- <property name="step_increment">0.10000000000000001</property>
- <property name="page_increment">0.25</property>
- </object>
- <object class="GtkAdjustment" id="Display.NormalsLengthAdjustment">
- <property name="upper">30</property>
- <property name="value">10</property>
- <property name="step_increment">0.10000000000000001</property>
- <property name="page_increment">10</property>
- </object>
- <object class="GtkAdjustment" id="Display.PolygonOpacityAdjustment">
- <property name="upper">1</property>
- <property name="step_increment">0.10000000000000001</property>
- <property name="page_increment">0.25</property>
- </object>
- <object class="GtkAdjustment" id="DisplayEndPointSizeAdjustment">
- <property name="upper">20</property>
- <property name="value">8</property>
- <property name="step_increment">0.10000000000000001</property>
- <property name="page_increment">10</property>
- </object>
- <object class="GtkAction" id="Fullscreen">
- <property name="label">Fullscreen</property>
- <property name="short_label" translatable="yes">Fullscreen</property>
- <property name="tooltip">Toggle Fullscreen</property>
- </object>
<object class="GtkAction" id="LoadSettings">
<property name="label" translatable="yes">Load Settings</property>
<property name="short_label" translatable="yes">Load Settings</property>
@@ -79,6 +52,33 @@
<property name="short_label" translatable="yes">Save Settings As</property>
<property name="tooltip" translatable="yes">Save settings in a custom file</property>
</object>
+ <object class="GtkAdjustment" id="Display.HighlightAdjustment">
+ <property name="upper">1</property>
+ <property name="step_increment">0.10000000000000001</property>
+ <property name="page_increment">0.25</property>
+ </object>
+ <object class="GtkAdjustment" id="Display.NormalsLengthAdjustment">
+ <property name="upper">30</property>
+ <property name="value">10</property>
+ <property name="step_increment">0.10000000000000001</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkAdjustment" id="Display.PolygonOpacityAdjustment">
+ <property name="upper">1</property>
+ <property name="step_increment">0.10000000000000001</property>
+ <property name="page_increment">0.25</property>
+ </object>
+ <object class="GtkAdjustment" id="DisplayEndPointSizeAdjustment">
+ <property name="upper">20</property>
+ <property name="value">8</property>
+ <property name="step_increment">0.10000000000000001</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkAction" id="Fullscreen">
+ <property name="label">Fullscreen</property>
+ <property name="short_label" translatable="yes">Fullscreen</property>
+ <property name="tooltip">Toggle Fullscreen</property>
+ </object>
<object class="GtkWindow" id="PrinterControlWindowTest">
<property name="can_focus">False</property>
<property name="default_width">200</property>
@@ -7282,6 +7282,21 @@ The head will be going down between them</property>
<property name="position">2</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="Display.ShowLayerOverhang">
+ <property name="label" translatable="yes">Show Layer Overhang Areas</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
</object>
</child>
</object>
View
@@ -235,6 +235,7 @@ static struct {
BOOL_MEMBER (Display.DisplayDebuginFill, "DisplayDebuginFill", false, true),
BOOL_MEMBER (Display.DisplayDebug, "DisplayDebug", false, true),
BOOL_MEMBER (Display.DisplayDebugArcs, "DisplayDebugArcs", true, true),
+ BOOL_MEMBER (Display.ShowLayerOverhang, "ShowLayerOverhang", true, true),
BOOL_MEMBER (Display.CommsDebug, "CommsDebug", false, true),
BOOL_MEMBER (Display.TerminalProgress, "TerminalProgress", false, true),
BOOL_MEMBER (Display.DisplayLayer, "DisplayLayer", false, true),
View
@@ -220,6 +220,7 @@ class Settings {
bool DisplayGCodeBorders;
bool DisplayGCodeArrows;
bool DisplayDebugArcs;
+ bool ShowLayerOverhang;
bool DrawVertexNumbers;
bool DrawLineNumbers;
bool DrawOutlineNumbers;
View
@@ -1691,8 +1691,12 @@ void FlatShape::clear()
void FlatShape::draw_geometry() {
for (uint i = 0; i < polygons.size(); i++) {
- polygons[i].draw_as_surface();
- //polygons[i].draw(GL_LINE_LOOP,false);
+ polygons[i].draw(GL_LINE_LOOP,false);
+ Poly p;
+ p.vertices = simplified(polygons[i].vertices, 0.2);
+ cleandist(p.vertices, 0.2);
+ p.draw_as_surface();
+ //polygons[i].draw_as_surface();
}
}
Oops, something went wrong.

0 comments on commit de4daaa

Please sign in to comment.