files brynjarh23 found on the basement computer
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
raft.csv:Object First Layer Feed Rate Infill Multiplier (ratio):=0.4
|
||||
raft.csv:Object First Layer Feed Rate Perimeter Multiplier (ratio):=0.5
|
||||
raft.csv:Object First Layer Flow Rate Multiplier (ratio):=0.5
|
||||
raft.csv:Operating Nozzle Lift over Layer Thickness (ratio):=1.0
|
||||
bottom.csv:Altitude (mm):=0.1
|
||||
@@ -0,0 +1,22 @@
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-non-heated/profiles/extrusion/ABS/outline.csv SF35-Thingomatic-HBP/profiles/extrusion/ABS/outline.csv
|
||||
--- SF35-Thingomatic-non-heated/profiles/extrusion/ABS/outline.csv 2011-02-03 13:51:03.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP/profiles/extrusion/ABS/outline.csv 2011-02-03 14:15:36.000000000 +0100
|
||||
@@ -2,5 +2,5 @@
|
||||
Name Value
|
||||
WindowPosition 600+0
|
||||
Open File for Outline
|
||||
-Activate Outline False
|
||||
+Activate Outline True
|
||||
Outline Margin: 3.0
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-non-heated/profiles/extrusion/ABS/wipe.csv SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/wipe.csv
|
||||
--- SF35-Thingomatic-non-heated/profiles/extrusion/ABS/wipe.csv 2011-02-03 16:59:19.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/wipe.csv 2011-02-03 22:53:10.000000000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
Name Value
|
||||
WindowPosition 700+0
|
||||
Open File for Wipe
|
||||
-Activate Wipe True
|
||||
+Activate Wipe False
|
||||
Location Arrival X (mm): 52.0
|
||||
Location Arrival Y (mm): -57.0
|
||||
Location Arrival Z (mm): 10.0
|
||||
@@ -0,0 +1,117 @@
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/alterations/end.gcode SF35-Thingomatic-HBP-Stepstruder/alterations/end.gcode
|
||||
--- SF35-Thingomatic-HBP/alterations/end.gcode 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/alterations/end.gcode 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -8,6 +8,7 @@
|
||||
G1 X0.0 Y55.0 F3300.0 (move to cooling position)
|
||||
(**** end move to cooling position ****)
|
||||
(**** begin filament reversal ****)
|
||||
+M108 R1.98 (set extruder speed)
|
||||
M102 (Extruder on, reverse)
|
||||
G04 P2000 (Wait t/1000 seconds)
|
||||
M103 (Extruder off)
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/alterations/replace.csv SF35-Thingomatic-HBP-Stepstruder/alterations/replace.csv
|
||||
--- SF35-Thingomatic-HBP/alterations/replace.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/alterations/replace.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -1 +1,2 @@
|
||||
M113 ;M113
|
||||
+M108 S M108 R
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/alterations/start.gcode SF35-Thingomatic-HBP-Stepstruder/alterations/start.gcode
|
||||
--- SF35-Thingomatic-HBP/alterations/start.gcode 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/alterations/start.gcode 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -3,7 +3,7 @@
|
||||
(**** begin initialization commands ****)
|
||||
G21 (set units to mm)
|
||||
G90 (set positioning to absolute)
|
||||
-M108 S255 (set extruder speed to maximum)
|
||||
+M108 R1.98 (set extruder speed)
|
||||
M103 (Make sure extruder is off)
|
||||
M104 S225 T0 (set extruder temperature)
|
||||
M109 S125 T0 (set heated-build-platform temperature)
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/alterations/start.gcode.orig SF35-Thingomatic-HBP-Stepstruder/alterations/start.gcode.orig
|
||||
--- SF35-Thingomatic-HBP/alterations/start.gcode.orig 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/alterations/start.gcode.orig 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -0,0 +1,24 @@
|
||||
+(**** beginning of start.gcode ****)
|
||||
+(This file is for a MakerBot Thing-O-Matic)
|
||||
+(**** begin initialization commands ****)
|
||||
+G21 (set units to mm)
|
||||
+G90 (set positioning to absolute)
|
||||
+M108 S255 (set extruder speed to maximum)
|
||||
+M103 (Make sure extruder is off)
|
||||
+M104 S225 T0 (set extruder temperature)
|
||||
+M109 S125 T0 (set heated-build-platform temperature)
|
||||
+(**** end initialization commands ****)
|
||||
+(**** begin homing ****)
|
||||
+G162 Z F500 (home Z axis maximum)
|
||||
+G161 X Y F2500 (home XY axes minimum)
|
||||
+G92 Z80 ( ---=== Set Z axis maximum ===--- )
|
||||
+G92 X-57.5 Y-57 (set zero for X and Y)
|
||||
+(**** end homing ****)
|
||||
+(**** begin pre-wipe commands ****)
|
||||
+G1 X52 Y-57.0 Z10 F3300.0 (move to waiting position)
|
||||
+M6 T0 (wait for toolhead parts, nozzle, HBP, etc., to reach temperature)
|
||||
+M101 (Extruder on, forward)
|
||||
+G04 P5000 (Wait t/1000 seconds)
|
||||
+M103 (Extruder off)
|
||||
+(**** end pre-wipe commands ****)
|
||||
+(**** end of start.gcode ****)
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/profiles/extrusion/ABS/carve.csv SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/carve.csv
|
||||
--- SF35-Thingomatic-HBP/profiles/extrusion/ABS/carve.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/carve.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -12,5 +12,5 @@
|
||||
Layers To (index): 912345678
|
||||
Correct Mesh True
|
||||
Unproven Mesh False
|
||||
-Perimeter Width over Thickness (ratio): 1.45
|
||||
+Perimeter Width over Thickness (ratio): 1.25
|
||||
SVG Viewer: webbrowser
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/profiles/extrusion/ABS/cool.csv SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/cool.csv
|
||||
--- SF35-Thingomatic-HBP/profiles/extrusion/ABS/cool.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/cool.csv 2011-02-04 17:51:13.000000000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
Name Value
|
||||
WindowPosition 700+0
|
||||
Open File for Cool
|
||||
-Activate Cool False
|
||||
+Activate Cool True
|
||||
Orbit False
|
||||
Slow Down True
|
||||
Maximum Cool (Celcius): 0.0
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/profiles/extrusion/ABS/fill.csv SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/fill.csv
|
||||
--- SF35-Thingomatic-HBP/profiles/extrusion/ABS/fill.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/fill.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -23,7 +23,7 @@
|
||||
Line False
|
||||
Infill Perimeter Overlap (ratio): 0.35
|
||||
Infill Solidity (ratio): 0.25
|
||||
-Infill Width over Thickness (ratio): 1.5
|
||||
+Infill Width over Thickness (ratio): 1.25
|
||||
Solid Surface Thickness (layers): 2
|
||||
Infill > Loops > Perimeter False
|
||||
Infill > Perimeter > Loops False
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/profiles/extrusion/ABS/reversal.csv SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/reversal.csv
|
||||
--- SF35-Thingomatic-HBP/profiles/extrusion/ABS/reversal.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/reversal.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
Name Value
|
||||
WindowPosition 700+0
|
||||
Open File for Reversal
|
||||
-Activate Reversal False
|
||||
+Activate Reversal True
|
||||
Reversal speed (RPM): 35.0
|
||||
Reversal time (milliseconds): 70.0
|
||||
Push-back time (milliseconds): 73.0
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/profiles/extrusion/ABS/speed.csv SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/speed.csv
|
||||
--- SF35-Thingomatic-HBP/profiles/extrusion/ABS/speed.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
+++ SF35-Thingomatic-HBP-Stepstruder/profiles/extrusion/ABS/speed.csv 2011-02-04 17:50:42.000000000 +0100
|
||||
@@ -9,8 +9,8 @@
|
||||
Duty Cyle at Beginning (portion): 1.0
|
||||
Duty Cyle at Ending (portion): 0.0
|
||||
Feed Rate (mm/s): 32.0
|
||||
-Flow Rate Setting (float): 255.0
|
||||
+Flow Rate Setting (float): 1.98
|
||||
Orbital Feed Rate over Operating Feed Rate (ratio): 0.5
|
||||
Perimeter Feed Rate over Operating Feed Rate (ratio): 1.0
|
||||
Perimeter Flow Rate over Operating Flow Rate (ratio): 1.0
|
||||
-Travel Feed Rate (mm/s): 32.0
|
||||
+Travel Feed Rate (mm/s): 40.0
|
||||
@@ -0,0 +1,14 @@
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Thingomatic-HBP/alterations/end.gcode SF35-Thingomatic-ABP/alterations/end.gcode
|
||||
--- SF35-Thingomatic-HBP/alterations/end.gcode 2011-01-26 22:52:40.000000000 +0100
|
||||
+++ SF35-Thingomatic-ABP/alterations/end.gcode 2011-01-26 22:52:40.000000000 +0100
|
||||
@@ -15,7 +15,9 @@
|
||||
M18 (Turn off steppers)
|
||||
(**** begin eject ****)
|
||||
M6 T0 (wait for toolhead parts (nozzle, HBP, etc) to reach temperature)
|
||||
-M01 (Remove the object then click yes.)
|
||||
+M106 (conveyor on)
|
||||
+G04 P14000 (wait t/1000 seconds)
|
||||
+M107 (conveyor off)
|
||||
(**** end eject ****)
|
||||
(**** begin cool for safety ****)
|
||||
M104 S0 T0 (set extruder temperature)
|
||||
@@ -0,0 +1,54 @@
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Makerbot-baseline/alterations/end.gcode SF35-Thingomatic-baseline/alterations/end.gcode
|
||||
--- SF35-Makerbot-baseline/alterations/end.gcode 2011-02-03 14:30:23.000000000 +0100
|
||||
+++ SF35-Thingomatic-baseline/alterations/end.gcode 2011-02-04 15:04:54.000000000 +0100
|
||||
@@ -1,2 +1,24 @@
|
||||
(**** Beginning of end.gcode ****)
|
||||
+(This file is for a MakerBot Thing-O-Matic)
|
||||
+(*** begin settings ****)
|
||||
+M109 S95 T0 (set heated-build-platform temperature)
|
||||
+(**** end settings ****)
|
||||
+(**** begin move to cooling position ****)
|
||||
+G1 X0.0 F3300.0 (move to cooling position)
|
||||
+G1 X0.0 Y55.0 F3300.0 (move to cooling position)
|
||||
+(**** end move to cooling position ****)
|
||||
+(**** begin filament reversal ****)
|
||||
+M102 (Extruder on, reverse)
|
||||
+G04 P2000 (Wait t/1000 seconds)
|
||||
+M103 (Extruder off)
|
||||
+(**** end filament reversal ****)
|
||||
+M18 (Turn off steppers)
|
||||
+(**** begin eject ****)
|
||||
+M6 T0 (wait for toolhead parts (nozzle, HBP, etc) to reach temperature)
|
||||
+M01 (Remove the object then click yes.)
|
||||
+(**** end eject ****)
|
||||
+(**** begin cool for safety ****)
|
||||
+M104 S0 T0 (set extruder temperature)
|
||||
+M109 S0 T0 (set heated-build-platform temperature)
|
||||
+(**** end cool for safety ****)
|
||||
(**** end of end.gcode ****)
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Makerbot-baseline/alterations/start.gcode SF35-Thingomatic-baseline/alterations/start.gcode
|
||||
--- SF35-Makerbot-baseline/alterations/start.gcode 2011-02-04 15:17:10.000000000 +0100
|
||||
+++ SF35-Thingomatic-baseline/alterations/start.gcode 2011-02-04 15:04:54.000000000 +0100
|
||||
@@ -1,4 +1,5 @@
|
||||
(**** beginning of start.gcode ****)
|
||||
+(This file is for a MakerBot Thing-O-Matic)
|
||||
(**** begin initialization commands ****)
|
||||
G21 (set units to mm)
|
||||
G90 (set positioning to absolute)
|
||||
@@ -8,5 +9,16 @@
|
||||
M109 S125 T0 (set heated-build-platform temperature)
|
||||
(**** end initialization commands ****)
|
||||
(**** begin homing ****)
|
||||
+G162 Z F500 (home Z axis maximum)
|
||||
+G161 X Y F2500 (home XY axes minimum)
|
||||
+G92 Z80 ( ---=== Set Z axis maximum ===--- )
|
||||
+G92 X-57.5 Y-57 (set zero for X and Y)
|
||||
(**** end homing ****)
|
||||
+(**** begin pre-wipe commands ****)
|
||||
+G1 X52 Y-57.0 Z10 F3300.0 (move to waiting position)
|
||||
+M6 T0 (wait for toolhead parts, nozzle, HBP, etc., to reach temperature)
|
||||
+M101 (Extruder on, forward)
|
||||
+G04 P5000 (Wait t/1000 seconds)
|
||||
+M103 (Extruder off)
|
||||
+(**** end pre-wipe commands ****)
|
||||
(**** end of start.gcode ****)
|
||||
@@ -0,0 +1,7 @@
|
||||
speed.csv:Feed Rate (mm/s):=28.0
|
||||
carve.csv:Layer Thickness (mm):=0.39
|
||||
fill.csv:Infill Perimeter Overlap (ratio):=0.4
|
||||
fill.csv:Infill Solidity (ratio):=0.4
|
||||
fill.csv:Extra Shells on Alternating Solid Layer (layers):=1
|
||||
fill.csv:Extra Shells on Base (layers):=1
|
||||
inset.csv:Overlap Removal Width over Perimeter Width (ratio):=0.7
|
||||
@@ -0,0 +1,89 @@
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-cupcake-non-heated/alterations/end.gcode SF35-cupcake-ABP/alterations/end.gcode
|
||||
--- SF35-cupcake-non-heated/alterations/end.gcode 2011-02-04 16:01:34.000000000 +0100
|
||||
+++ SF35-cupcake-ABP/alterations/end.gcode 2011-02-04 15:59:47.000000000 +0100
|
||||
@@ -1,15 +1,31 @@
|
||||
(**** Beginning of end.gcode ****)
|
||||
-(**** begin cool for safety ****)
|
||||
-M104 S0 T0 (set extruder temperature)
|
||||
-M109 S0 T0 (set heated-build-platform temperature)
|
||||
-(**** end cool for safety ****)
|
||||
+(*** begin settings ****)
|
||||
+M109 S95 T0 (set heated-build-platform temperature)
|
||||
+(**** end settings ****)
|
||||
+(**** begin move to cooling position ****)
|
||||
+G1 X0 Y54 F3300.0 (move to cooling position)
|
||||
+(**** end move to cooling position ****)
|
||||
(**** begin filament reversal ****)
|
||||
M102 (Extruder on, reverse)
|
||||
G04 P2000 (Wait t/1000 seconds)
|
||||
M103 (Extruder off)
|
||||
(**** end filament reversal ****)
|
||||
-(**** begin move to cooling position ****)
|
||||
-G91
|
||||
-G1 Z10
|
||||
-(**** end move to cooling position ****)
|
||||
+M18 (Turn off steppers)
|
||||
+(**** begin eject ****)
|
||||
+M6 T0 (wait for toolhead parts (nozzle, HBP, etc) to reach temperature)
|
||||
+M106 (conveyor on)
|
||||
+G04 P9000 (wait t/1000 seconds)
|
||||
+M107 (conveyor off)
|
||||
+(**** end eject ****)
|
||||
+(**** begin cool for safety ****)
|
||||
+M104 S0 T0 (set extruder temperature)
|
||||
+M109 S0 T0 (set heated-build-platform temperature)
|
||||
+(**** end cool for safety ****)
|
||||
+(**** start wipe ****)
|
||||
+G1 X-54 Y-15.5 Z6.0 F2500.0
|
||||
+G1 X-54 Y15.5 Z6.0 F2500.0
|
||||
+(**** end wipe ****)
|
||||
+G1 X0 Y0 F3300.0 (move nozzle to center)
|
||||
+G1 X0 Y0 Z0 F3300.0 (move nozzle to origin)
|
||||
(**** end of end.gcode ****)
|
||||
+
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-cupcake-non-heated/alterations/start.gcode SF35-cupcake-ABP/alterations/start.gcode
|
||||
--- SF35-cupcake-non-heated/alterations/start.gcode 2011-02-04 15:55:38.000000000 +0100
|
||||
+++ SF35-cupcake-ABP/alterations/start.gcode 2011-02-04 15:55:38.000000000 +0100
|
||||
@@ -12,15 +12,11 @@
|
||||
G92 X0 Y0 Z0 (set origin to current position)
|
||||
(**** end homing ****)
|
||||
(**** begin pre-wipe commands ****)
|
||||
-G0 Z15 (Move up for test extrusion)
|
||||
+G1 X-54 Y-30 Z6 F3300.0 (move to waiting position)
|
||||
M108 S255 (Extruder speed = max)
|
||||
M6 T0 (Wait for tool to heat up)
|
||||
M101 (Extruder on, forward)
|
||||
G04 P5000 (Wait 5 seconds)
|
||||
M103 (Extruder off)
|
||||
(**** end pre-wipe commands ****)
|
||||
-(**** begin manual wipe ****)
|
||||
-M01 (The heater is warming up and will do a test extrusion. Click yes after you have cleared the nozzle of the extrusion.)
|
||||
-(**** end manual wipe ****)
|
||||
-G0 Z0(Go back to zero.)
|
||||
(**** end of start.gcode ****)
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-cupcake-non-heated/profiles/extrusion/ABS/wipe.csv SF35-cupcake-ABP/profiles/extrusion/ABS/wipe.csv
|
||||
--- SF35-cupcake-non-heated/profiles/extrusion/ABS/wipe.csv 2011-02-04 15:55:38.000000000 +0100
|
||||
+++ SF35-cupcake-ABP/profiles/extrusion/ABS/wipe.csv 2011-02-04 15:55:38.000000000 +0100
|
||||
@@ -3,13 +3,13 @@
|
||||
WindowPosition 700+0
|
||||
Open File for Wipe
|
||||
Activate Wipe True
|
||||
-Location Arrival X (mm): 52.0
|
||||
-Location Arrival Y (mm): -57.0
|
||||
-Location Arrival Z (mm): 10.0
|
||||
-Location Departure X (mm): 52.0
|
||||
-Location Departure Y (mm): -30.0
|
||||
-Location Departure Z (mm): 10.0
|
||||
-Location Wipe X (mm): 52.0
|
||||
-Location Wipe Y (mm): -55.0
|
||||
-Location Wipe Z (mm): 10.0
|
||||
+Location Arrival X (mm): -54.0
|
||||
+Location Arrival Y (mm): -30.0
|
||||
+Location Arrival Z (mm): 6.0
|
||||
+Location Departure X (mm): -54.0
|
||||
+Location Departure Y (mm): 4.0
|
||||
+Location Departure Z (mm): 6.0
|
||||
+Location Wipe X (mm): -54.0
|
||||
+Location Wipe Y (mm): 0.0
|
||||
+Location Wipe Z (mm): 6.0
|
||||
Wipe Period (layers): 99999999
|
||||
@@ -0,0 +1,47 @@
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Makerbot-baseline/alterations/end.gcode SF35-cupcake-baseline/alterations/end.gcode
|
||||
--- SF35-Makerbot-baseline/alterations/end.gcode 2011-02-03 14:30:23.000000000 +0100
|
||||
+++ SF35-cupcake-baseline/alterations/end.gcode 2011-02-04 16:02:16.000000000 +0100
|
||||
@@ -1,2 +1,15 @@
|
||||
(**** Beginning of end.gcode ****)
|
||||
+(**** begin cool for safety ****)
|
||||
+M104 S0 T0 (set extruder temperature)
|
||||
+M109 S0 T0 (set heated-build-platform temperature)
|
||||
+(**** end cool for safety ****)
|
||||
+(**** begin filament reversal ****)
|
||||
+M102 (Extruder on, reverse)
|
||||
+G04 P2000 (Wait t/1000 seconds)
|
||||
+M103 (Extruder off)
|
||||
+(**** end filament reversal ****)
|
||||
+(**** begin move to cooling position ****)
|
||||
+G91
|
||||
+G1 Z10
|
||||
+(**** end move to cooling position ****)
|
||||
(**** end of end.gcode ****)
|
||||
diff -P -u -x '*~' -x '\.*' -r SF35-Makerbot-baseline/alterations/start.gcode SF35-cupcake-baseline/alterations/start.gcode
|
||||
--- SF35-Makerbot-baseline/alterations/start.gcode 2011-02-04 15:17:10.000000000 +0100
|
||||
+++ SF35-cupcake-baseline/alterations/start.gcode 2011-02-04 15:55:38.000000000 +0100
|
||||
@@ -1,4 +1,5 @@
|
||||
(**** beginning of start.gcode ****)
|
||||
+(This file is for a MakerBot Cupcake CNC)
|
||||
(**** begin initialization commands ****)
|
||||
G21 (set units to mm)
|
||||
G90 (set positioning to absolute)
|
||||
@@ -8,5 +9,18 @@
|
||||
M109 S125 T0 (set heated-build-platform temperature)
|
||||
(**** end initialization commands ****)
|
||||
(**** begin homing ****)
|
||||
+G92 X0 Y0 Z0 (set origin to current position)
|
||||
(**** end homing ****)
|
||||
+(**** begin pre-wipe commands ****)
|
||||
+G0 Z15 (Move up for test extrusion)
|
||||
+M108 S255 (Extruder speed = max)
|
||||
+M6 T0 (Wait for tool to heat up)
|
||||
+M101 (Extruder on, forward)
|
||||
+G04 P5000 (Wait 5 seconds)
|
||||
+M103 (Extruder off)
|
||||
+(**** end pre-wipe commands ****)
|
||||
+(**** begin manual wipe ****)
|
||||
+M01 (The heater is warming up and will do a test extrusion. Click yes after you have cleared the nozzle of the extrusion.)
|
||||
+(**** end manual wipe ****)
|
||||
+G0 Z0(Go back to zero.)
|
||||
(**** end of start.gcode ****)
|
||||
@@ -0,0 +1,98 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import getopt
|
||||
import os
|
||||
|
||||
def processCSV(filename, overrides):
|
||||
csvlines = [line for line in open(filename, "r")]
|
||||
try:
|
||||
csvfile = open(filename, 'w')
|
||||
except IOError:
|
||||
print("The file " + filename + " cannot be opened for writing.")
|
||||
return False
|
||||
|
||||
for line in csvlines:
|
||||
splitline = line.split('\t', 1)
|
||||
if len(splitline) == 2:
|
||||
if (splitline[0] in overrides):
|
||||
splitline[1] = overrides[splitline[0]] + "\n"
|
||||
del overrides[splitline[0]]
|
||||
line = '\t'.join(splitline)
|
||||
csvfile.write(line)
|
||||
for newvalue in overrides:
|
||||
csvfile.write(newvalue + "\t" + overrides[newvalue] + "\n")
|
||||
csvfile.close()
|
||||
|
||||
def usage():
|
||||
print >> sys.stderr, "Usage: " + sys.argv[0] + " -p <prefsdir> -o <overridefile>"
|
||||
print >> sys.stderr, "Options:"
|
||||
print >> sys.stderr, " -p, --prefsdir=<dir> Modify the given profile"
|
||||
print >> sys.stderr, " -o, --overrides=<file> Use these overrides"
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
# Handle command-line arguments
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:],
|
||||
"p:o:", ["prefsdir=", "overrides="])
|
||||
except getopt.GetoptError:
|
||||
usage()
|
||||
sys.exit(2)
|
||||
|
||||
prefsdir = None
|
||||
overrides = None
|
||||
for opt, arg in opts:
|
||||
if opt in ("-p", "--prefsdir"):
|
||||
prefsdir = arg
|
||||
if opt in ("-o", "--overrides"):
|
||||
overrides = arg
|
||||
|
||||
if len(args) != 0:
|
||||
usage()
|
||||
sys.exit(2)
|
||||
|
||||
if not prefsdir:
|
||||
print >> sys.stderr, "Error: No prefsdir given"
|
||||
usage()
|
||||
sys.exit(2)
|
||||
|
||||
if not overrides:
|
||||
print >> sys.stderr, "Error: No overrides given"
|
||||
usage()
|
||||
sys.exit(2)
|
||||
|
||||
# Recursively scan prefsdir for all csv files
|
||||
csvfiles = {}
|
||||
for root, _, files in os.walk(prefsdir):
|
||||
for filename in files:
|
||||
csvfiles[filename] = os.path.join(root, filename)
|
||||
|
||||
|
||||
# Build dict from overrides
|
||||
try:
|
||||
overridelines = [line.rstrip() for line in open(overrides, "r")]
|
||||
except IOError:
|
||||
print "Unable to open file " + overrides
|
||||
sys.exit(1)
|
||||
|
||||
overridedict = {} # file.csv -> {name: value}
|
||||
for override in overridelines:
|
||||
splitline = override.split(":", 1)
|
||||
if len(splitline) == 2:
|
||||
(moduleName,override) = splitline
|
||||
splitoverride = override.split("=",1)
|
||||
if len(splitoverride) == 2:
|
||||
if not moduleName in overridedict: overridedict[moduleName] = {}
|
||||
overridedict[moduleName][splitoverride[0]] = splitoverride[1]
|
||||
|
||||
# print "Updating",
|
||||
for csvfile in overridedict:
|
||||
if not csvfile in csvfiles:
|
||||
print "CSV file not found: " + csvfile
|
||||
break
|
||||
# print csvfile,
|
||||
processCSV(csvfiles[csvfile], overridedict[csvfile])
|
||||
# print "\n"
|
||||
|
||||
sys.exit(0)
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: $0 <baseline> <overridefile> [<new-profile>]"
|
||||
exit
|
||||
fi
|
||||
|
||||
BASELINE=$1
|
||||
OVERRIDES=$2
|
||||
if [ $# == 3 ]; then
|
||||
NEWPROFILE=$3
|
||||
else
|
||||
NEWPROFILE=new-profile
|
||||
fi
|
||||
|
||||
#echo "Using skeinforge baseline $BASELINE"
|
||||
#echo "Using override file $OVERRIDES"
|
||||
|
||||
#echo "Building $NEWPROFILE"
|
||||
rm -rf "$NEWPROFILE"
|
||||
cp -r "$BASELINE" "$NEWPROFILE"
|
||||
#echo "Applying overrides"
|
||||
`dirname $0`/apply_overrides.py -p "$NEWPROFILE" -o "$OVERRIDES"
|
||||
@@ -0,0 +1,98 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Profile cascading script
|
||||
#
|
||||
# Cascade hierarchy:
|
||||
#
|
||||
# Makerbot-baseline
|
||||
# +--Thingomatic-baseline
|
||||
# | +--Thingomatic-non-heated
|
||||
# | +--Thingomatic-HBP
|
||||
# | | +--Thingomatic-HBP-Stepstruder
|
||||
# | +--Thingomatic-ABP
|
||||
# | +--Thingomatic-HBP-Stepstruder
|
||||
# +--Cupcake-baseline
|
||||
# +--Cupcake-non-heated
|
||||
# +--Cupcake-HBP
|
||||
# +--Cupcake-ABP
|
||||
#
|
||||
# Examples of how to generate new diffs (NB! these must be manually examined before use):
|
||||
# diff -P -u -x "*~" -x "\.*" -r SF35-Makerbot-baseline SF35-Thingomatic-baseline > Thingomatic.diff
|
||||
# diff -P -u -x "*~" -x "\.*" -r SF35-Makerbot-baseline SF35-cupcake-baseline > cupcake.diff
|
||||
# diff -P -u -x "*~" -x "\.*" -r SF35-Thingomatic-non-heated SF35-Thingomatic-HBP > HBP.diff
|
||||
# diff -P -u -x "*~" -x "\.*" -r SF35-Thingomatic-non-heated SF35-Thingomatic-ABP > Thingomatic-ABP.diff
|
||||
# diff -P -u -x "*~" -x "\.*" -r SF35-Thingomatic-HBP SF35-Thingomatic-HBP-Stepstruder > Stepstruder.diff
|
||||
# diff -P -u -x "*~" -x "\.*" -r SF35-cupcake-non-heated SF35-cupcake-ABP > cupcake-ABP.diff
|
||||
#
|
||||
|
||||
if [ $# != 2 ]; then
|
||||
echo "Usage: $0 <skeinforge-version> <diffdir>"
|
||||
exit
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
DIFFDIR=$2
|
||||
SCRIPTDIR=$PWD
|
||||
|
||||
echo "Using skeinforge version $VERSION"
|
||||
echo "Patching using $DIFFDIR"
|
||||
|
||||
DIFFS=$PWD/$DIFFDIR
|
||||
cd skeinforge-$VERSION/skeinforge_application/prefs-experimental
|
||||
|
||||
echo "Building profiles:"
|
||||
|
||||
echo "o SF$VERSION-Thingomatic-baseline"
|
||||
rm -rf SF$VERSION-Thingomatic-baseline
|
||||
cp -r SF$VERSION-Makerbot-baseline SF$VERSION-Thingomatic-baseline
|
||||
cd SF$VERSION-Thingomatic-baseline; patch -s -p1 < $DIFFS/Thingomatic.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-Thingomatic-non-heated"
|
||||
rm -rf SF$VERSION-Thingomatic-non-heated
|
||||
cp -r SF$VERSION-Thingomatic-baseline SF$VERSION-Thingomatic-non-heated
|
||||
|
||||
echo "o SF$VERSION-Thingomatic-HBP"
|
||||
rm -rf SF$VERSION-Thingomatic-HBP
|
||||
cp -r SF$VERSION-Thingomatic-non-heated SF$VERSION-Thingomatic-HBP
|
||||
cd SF$VERSION-Thingomatic-HBP; patch -s -p1 < $DIFFS/HBP.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-Thingomatic-ABP"
|
||||
rm -rf SF$VERSION-Thingomatic-ABP
|
||||
cp -r SF$VERSION-Thingomatic-non-heated SF$VERSION-Thingomatic-ABP
|
||||
cd SF$VERSION-Thingomatic-ABP; patch -s -p1 < $DIFFS/Thingomatic-ABP.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-Thingomatic-HBP-Stepstruder"
|
||||
rm -rf SF$VERSION-Thingomatic-HBP-Stepstruder
|
||||
cp -r SF$VERSION-Thingomatic-HBP SF$VERSION-Thingomatic-HBP-Stepstruder
|
||||
cd SF$VERSION-Thingomatic-HBP-Stepstruder; patch -s -p1 < $DIFFS/Stepstruder.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-Thingomatic-ABP-Stepstruder"
|
||||
rm -rf SF$VERSION-Thingomatic-ABP-Stepstruder
|
||||
cp -r SF$VERSION-Thingomatic-ABP SF$VERSION-Thingomatic-ABP-Stepstruder
|
||||
cd SF$VERSION-Thingomatic-ABP-Stepstruder; patch -s -p1 < $DIFFS/Stepstruder.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-cupcake-baseline"
|
||||
rm -rf SF$VERSION-cupcake-baseline
|
||||
cp -r SF$VERSION-Makerbot-baseline SF$VERSION-cupcake-baseline
|
||||
cd SF$VERSION-cupcake-baseline; patch -s -p1 < $DIFFS/cupcake.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-cupcake-non-heated"
|
||||
rm -rf SF$VERSION-cupcake-non-heated
|
||||
cp -r SF$VERSION-cupcake-baseline SF$VERSION-cupcake-non-heated
|
||||
|
||||
echo "o SF$VERSION-cupcake-HBP"
|
||||
rm -rf SF$VERSION-cupcake-HBP
|
||||
cp -r SF$VERSION-cupcake-baseline SF$VERSION-cupcake-HBP
|
||||
cd SF$VERSION-cupcake-HBP; patch -s -p1 < $DIFFS/HBP.diff; cd ..
|
||||
|
||||
echo "o SF$VERSION-cupcake-ABP"
|
||||
rm -rf SF$VERSION-cupcake-ABP
|
||||
cp -r SF$VERSION-cupcake-non-heated SF$VERSION-cupcake-ABP
|
||||
cd SF$VERSION-cupcake-ABP; patch -s -p1 < $DIFFS/cupcake-ABP.diff; cd ..
|
||||
|
||||
echo "Building overrides:"
|
||||
echo "o Combined-Raftless HBP"
|
||||
$SCRIPTDIR/generate_override.sh SF35-Thingomatic-HBP-Stepstruder $DIFFS/Combined-Raftless.override SF35-Thingomatic-HBP-Stepstruder-Combined
|
||||
echo "o Combined-Raftless ABP"
|
||||
$SCRIPTDIR/generate_override.sh SF35-Thingomatic-ABP-Stepstruder $DIFFS/Combined-Raftless.override SF35-Thingomatic-ABP-Stepstruder-Combined
|
||||
@@ -0,0 +1,46 @@
|
||||
diff -ru skeinforge-40-orig/fabmetheus_utilities/settings.py skeinforge-40/fabmetheus_utilities/settings.py
|
||||
--- skeinforge-40-orig/fabmetheus_utilities/settings.py 2011-02-22 02:28:20.000000000 -0600
|
||||
+++ skeinforge-40/fabmetheus_utilities/settings.py 2011-03-08 17:08:15.000000000 -0600
|
||||
@@ -562,7 +562,7 @@
|
||||
settingTable = {}
|
||||
for setting in repository.preferences:
|
||||
settingTable[ setting.name ] = setting
|
||||
- for (name, value) in overrides[repository.baseName].items():
|
||||
+ for (name, value) in globalTemporaryOverrides[repository.baseName].items():
|
||||
if name in settingTable:
|
||||
settingTable[name].setValueToString(value)
|
||||
else:
|
||||
diff -ru skeinforge-40-orig/skeinforge_application/skeinforge.py skeinforge-40/skeinforge_application/skeinforge.py
|
||||
--- skeinforge-40-orig/skeinforge_application/skeinforge.py 2011-02-23 00:00:54.000000000 -0600
|
||||
+++ skeinforge-40/skeinforge_application/skeinforge.py 2011-03-08 17:03:42.000000000 -0600
|
||||
@@ -538,8 +538,7 @@
|
||||
'Craft a file, display dialog.'
|
||||
repository = getNewRepository()
|
||||
repository.fileNameInput.value = fileName
|
||||
- repository.execute()
|
||||
- settings.startMainLoopFromConstructor(repository)
|
||||
+ settings.startMainLoopFromWindow(repository.execute())
|
||||
|
||||
|
||||
class SkeinforgeRepository:
|
||||
@@ -567,8 +566,10 @@
|
||||
def execute(self):
|
||||
'Skeinforge button has been clicked.'
|
||||
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled)
|
||||
+ window = None
|
||||
for fileName in fileNames:
|
||||
- skeinforge_craft.writeOutput(fileName)
|
||||
+ window = skeinforge_craft.writeOutput(fileName)
|
||||
+ return window
|
||||
|
||||
def save(self):
|
||||
'Profile has been saved and profile menu should be updated.'
|
||||
@@ -598,7 +599,7 @@
|
||||
for prefSpec in options.preferences:
|
||||
(moduleName, prefSpec) = prefSpec.split(':', 1)
|
||||
(prefName, valueName) = prefSpec.split('=', 1)
|
||||
- settings.addPreferenceOverride(moduleName, prefName, valueName)
|
||||
+ settings.temporaryAddPreferenceOverride(moduleName, prefName, valueName)
|
||||
sys.argv = [sys.argv[0]] + args
|
||||
if len( args ) > 0:
|
||||
writeOutput( ' '.join(args) )
|
||||
@@ -0,0 +1,60 @@
|
||||
diff -ru skeinforge-latest/fabmetheus_utilities/settings.py skeinforge-39/fabmetheus_utilities/settings.py
|
||||
--- skeinforge-latest/fabmetheus_utilities/settings.py 2011-01-31 18:09:43.000000000 +0100
|
||||
+++ skeinforge-39/fabmetheus_utilities/settings.py 2011-01-31 17:16:26.000000000 +0100
|
||||
@@ -563,7 +563,7 @@
|
||||
settingTable = {}
|
||||
for setting in repository.preferences:
|
||||
settingTable[ setting.name ] = setting
|
||||
- for (name, value) in overrides[repository.baseName].items():
|
||||
+ for (name, value) in globalTemporaryOverrides[repository.baseName].items():
|
||||
if name in settingTable:
|
||||
settingTable[name].setValueToString(value)
|
||||
else:
|
||||
diff -ru skeinforge-latest/skeinforge_application/skeinforge.py skeinforge-39/skeinforge_application/skeinforge.py
|
||||
--- skeinforge-latest/skeinforge_application/skeinforge.py 2011-01-31 18:09:43.000000000 +0100
|
||||
+++ skeinforge-39/skeinforge_application/skeinforge.py 2011-01-31 17:15:52.000000000 +0100
|
||||
@@ -540,8 +540,7 @@
|
||||
'Craft a file, display dialog.'
|
||||
repository = getNewRepository()
|
||||
repository.fileNameInput.value = fileName
|
||||
- repository.execute()
|
||||
- settings.startMainLoopFromConstructor(repository)
|
||||
+ settings.startMainLoopFromWindow(repository.execute())
|
||||
|
||||
|
||||
class SkeinforgeRepository:
|
||||
@@ -569,8 +568,10 @@
|
||||
def execute(self):
|
||||
'Skeinforge button has been clicked.'
|
||||
fileNames = skeinforge_polyfile.getFileOrDirectoryTypesUnmodifiedGcode(self.fileNameInput.value, fabmetheus_interpret.getImportPluginFileNames(), self.fileNameInput.wasCancelled)
|
||||
+ window = None
|
||||
for fileName in fileNames:
|
||||
- skeinforge_craft.writeOutput(fileName)
|
||||
+ window = skeinforge_craft.writeOutput(fileName)
|
||||
+ return window
|
||||
|
||||
def save(self):
|
||||
'Profile has been saved and profile menu should be updated.'
|
||||
@@ -600,7 +601,7 @@
|
||||
for prefSpec in options.preferences:
|
||||
(moduleName, prefSpec) = prefSpec.split(':', 1)
|
||||
(prefName, valueName) = prefSpec.split('=', 1)
|
||||
- settings.addPreferenceOverride(moduleName, prefName, valueName)
|
||||
+ settings.temporaryAddPreferenceOverride(moduleName, prefName, valueName)
|
||||
sys.argv = [sys.argv[0]] + args
|
||||
if len( args ) > 0:
|
||||
writeOutput( ' '.join(args) )
|
||||
diff -ru /Users/kintel/Desktop/Makerbot/39_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py ./skeinforge_application/skeinforge_plugins/craft_plugins/export.py
|
||||
--- /Users/kintel/Desktop/Makerbot/39_reprap_python_beanshell/skeinforge_application/skeinforge_plugins/craft_plugins/export.py 2011-01-03 18:36:38.000000000 +0100
|
||||
+++ ./skeinforge_application/skeinforge_plugins/craft_plugins/export.py 2011-01-31 20:04:00.000000000 +0100
|
||||
@@ -167,8 +167,8 @@
|
||||
print('File ' + archive.getSummarizedFileName(fileName) + ' is being chain exported.')
|
||||
suffixFileName = fileName[: fileName.rfind('.')]
|
||||
if repository.addExportSuffix.value:
|
||||
- suffixFileName += '_export.'
|
||||
- suffixFileName += repository.fileExtension.value
|
||||
+ suffixFileName += '_export'
|
||||
+ suffixFileName += '.' + repository.fileExtension.value
|
||||
gcodeText = gcodec.getGcodeFileText(fileName, '')
|
||||
procedures = skeinforge_craft.getProcedures('export', gcodeText)
|
||||
gcodeText = skeinforge_craft.getChainTextFromProcedures(fileName, procedures[ : - 1 ], gcodeText)
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Format is tab separated preferences.
|
||||
Open File to be Analyzed
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,32 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Behold False
|
||||
Band Height (layers): 5
|
||||
Bottom Band Brightness (ratio): 0.7
|
||||
Bottom Layer Brightness (ratio): 1.0
|
||||
From the Bottom False
|
||||
From the Top True
|
||||
Draw Arrows True
|
||||
Open File to Behold
|
||||
Go Around Extruder Off Travel False
|
||||
Layers From (index): 0
|
||||
Layers To (index): 999999
|
||||
Number of Fill Bottom Layers (integer): 1
|
||||
Number of Fill Top Layers (integer): 1
|
||||
Pixels over Extrusion Width (ratio): 10.0
|
||||
Screen Horizontal Inset (pixels): 100
|
||||
Screen Vertical Inset (pixels): 50
|
||||
Viewpoint Latitude (degrees): 45.0
|
||||
Viewpoint Longitude (degrees): 210.0
|
||||
Width of Extrusion Thread (pixels): 1
|
||||
Width of Fill Bottom Thread (pixels): 3
|
||||
Width of Fill Top Thread (pixels): 3
|
||||
Width of Loop Thread (pixels): 3
|
||||
Width of Perimeter Inside Thread (pixels): 4
|
||||
Width of Perimeter Outside Thread (pixels): 4
|
||||
Width of Raft Thread (pixels): 1
|
||||
Width of Travel Thread (pixels): 0
|
||||
Width of X Axis (pixels): 5
|
||||
Width of Y Axis (pixels): 5
|
||||
Width of Z Axis (pixels): 5
|
||||
windowPositionBehold Dynamic Preferences 0+0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,12 @@
|
||||
Format is tab separated preferences.
|
||||
Extrusion Width over Thickness (ratio): 1.45
|
||||
Open File to be Carved
|
||||
Import Coarseness (ratio): 1.0
|
||||
Correct Mesh True
|
||||
Unproven Mesh False
|
||||
Infill Bridge Thickness over Layer Thickness (ratio): 1.0
|
||||
Infill Bridge Width over Extrusion Width (ratio): 1.0
|
||||
Infill in Direction of Bridges True
|
||||
Layer Thickness (mm): 0.36
|
||||
Layer Thickness over Precision (ratio): 10.0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,5 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Clip True
|
||||
Clip Over Extrusion Width (ratio): 0.18
|
||||
Open File to be Clipped
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,7 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Comb True
|
||||
Arrival Inset Follow Distance over Extrusion Width (ratio): 3.0
|
||||
Jitter Over Extrusion Width (ratio): 10.0
|
||||
Minimum Perimeter Departure Distance over Extrusion Width (ratio): 5.0
|
||||
Open File to be Combed
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,4 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Comment False
|
||||
Open File to Write Comments for
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,7 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Cool False
|
||||
Open File to be Cooled
|
||||
Minimum Layer Time (seconds): 60.0
|
||||
Turn Fan On at Beginning True
|
||||
Turn Fan Off at Ending True
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,12 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Export True
|
||||
Also Send Output To:
|
||||
Delete Comments False
|
||||
Delete M110 Gcode Line True
|
||||
binary_16_byte False
|
||||
Do Not Change Output True
|
||||
gcode_small False
|
||||
gcode_step False
|
||||
File Extension: gcode
|
||||
Open File to be Exported
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,22 @@
|
||||
Format is tab separated preferences.
|
||||
Diaphragm Period (layers): 999999
|
||||
Diaphragm Thickness (layers): 0
|
||||
Extra Shells on Alternating Solid Layer (layers): 1
|
||||
Extra Shells on Base (layers): 1
|
||||
Extra Shells on Sparse Layer (layers): 1
|
||||
Grid Extra Overlap (ratio): 0.005
|
||||
Grid Junction Separation Band Height (layers): 10
|
||||
Grid Junction Separation over Octogon Radius At End (ratio): 0.0
|
||||
Grid Junction Separation over Octogon Radius At Middle (ratio): 0.0
|
||||
Open File to be Filled
|
||||
Infill Begin Rotation (degrees): 45.0
|
||||
Infill Begin Rotation Repeat (layers): 1
|
||||
Infill Solidity (ratio): 0.2
|
||||
Infill Odd Layer Extra Rotation (degrees): 90.0
|
||||
Grid Hexagonal False
|
||||
Grid Rectangular True
|
||||
Line False
|
||||
Interior Infill Density over Exterior Density (ratio): 0.9
|
||||
Outside Extruded First True
|
||||
Solid Surface Thickness (layers): 2
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,12 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Fillet True
|
||||
Arc Point False
|
||||
Arc Radius False
|
||||
Arc Segment False
|
||||
Bevel True
|
||||
Corner Feedrate over Operating Feedrate (ratio): 1.0
|
||||
Fillet Radius over Extrusion Width (ratio): 0.35
|
||||
Open File to be Filleted
|
||||
Reversal Slowdown Distance over Extrusion Width (ratio): 0.5
|
||||
Use Intermediate Feedrate in Corners False
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,6 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Hop False
|
||||
Open File to be Hopped
|
||||
Hop Over Layer Thickness (ratio): 1.0
|
||||
Minimum Hop Angle (degrees): 20.0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,8 @@
|
||||
Format is tab separated preferences.
|
||||
Extrusion Perimeter Width over Thickness (ratio): 1.3
|
||||
Open File to be Insetted
|
||||
Infill Perimeter Overlap (ratio): 0.15
|
||||
Calculate Overlap from Perimeter and Infill True
|
||||
Calculate Overlap from Perimeter Only False
|
||||
Start at Home True
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,4 @@
|
||||
Format is tab separated preferences.
|
||||
Material List: ABS HDPE PCL PLA
|
||||
Material Selection: ABS
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,9 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Multiply: True
|
||||
Center X (millimeters): 0.0
|
||||
Center Y (millimeters): 0.0
|
||||
Open File to be Multiplied
|
||||
Number of Columns (integer): 1
|
||||
Number of Rows (integer): 1
|
||||
Separation over Extrusion Width (ratio): 10.0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,12 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Oozebane True
|
||||
After Startup Distance (millimeters): 0.275
|
||||
Early Shutdown Distance (millimeters): 0.2
|
||||
Early Startup Distance Constant (millimeters): 20.0
|
||||
Early Startup Maximum Distance (millimeters): 5.25
|
||||
First Early Startup Distance (millimeters): 20.0
|
||||
Open File to be Oozebaned
|
||||
Minimum Distance for Early Startup (millimeters): 0.01
|
||||
Minimum Distance for Early Shutdown (millimeters): 1.0
|
||||
Slowdown Startup Steps (positive integer): 1
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,4 @@
|
||||
Format is tab separated preferences.
|
||||
Execute All Unmodified Files in a Directory False
|
||||
Execute File True
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,33 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Raft: True
|
||||
Add Raft, Elevate Nozzle, Orbit and Set Altitude: True
|
||||
Base Infill Density (ratio): 0.5
|
||||
Base Layer Thickness over Layer Thickness: 1.0
|
||||
Base Layers (integer): 1
|
||||
Base Nozzle Lift over Half Base Layer Thickness (ratio): 0.4
|
||||
Bottom Altitude: 0.1
|
||||
Open File to be Rafted
|
||||
Infill Overhang (ratio): 0.1
|
||||
Interface Infill Density (ratio): 0.5
|
||||
Interface Layer Thickness over Layer Thickness: 0.8
|
||||
Interface Layers (integer): 1
|
||||
Interface Nozzle Lift over Half Interface Layer Thickness (ratio): 0.5
|
||||
Operating Nozzle Lift over Half Layer Thickness (ratio): 1.0
|
||||
Raft Outset Radius over Extrusion Width (ratio): 7.5
|
||||
Support Inset over Perimeter Extrusion Width (ratio): 0.0
|
||||
No Support Material True
|
||||
Support Material Everywhere False
|
||||
Support Material on Exterior Only False
|
||||
Support Minimum Angle (degrees): 60.0
|
||||
Temperature Change Time Before Raft (seconds): 0.0
|
||||
Temperature Change Time Before First Layer Outline (seconds): 0.0
|
||||
Temperature Change Time Before Next Threads (seconds): 0.0
|
||||
Temperature Change Time Before Support Layers (seconds): 0.0
|
||||
Temperature Change Time Before Supported Layers (seconds): 0.0
|
||||
Temperature of Raft (Celcius): 230.0
|
||||
Temperature of Shape First Layer Outline (Celcius): 215.0
|
||||
Temperature of Shape First Layer Within (Celcius): 215.0
|
||||
Temperature of Shape Next Layers (Celcius): 220.0
|
||||
Temperature of Support Layers (Celcius): 220.0
|
||||
Temperature of Supported Layers (Celcius): 220.0
|
||||
windowPositionRaft Preferences 0+0
|
||||
|
@@ -0,0 +1,2 @@
|
||||
Format is tab separated preferences.
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,9 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Skeinview True
|
||||
Draw Arrows True
|
||||
Open File to Skeinview
|
||||
Go Around Extruder Off Travel False
|
||||
Pixels over Extrusion Width (ratio): 10.0
|
||||
Screen Horizontal Inset (pixels): 100
|
||||
Screen Vertical Inset (pixels): 100
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,16 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Speed: True
|
||||
Bridge Feedrate Multiplier (ratio): 1.0
|
||||
Extrusion Diameter over Thickness (ratio): 1.3
|
||||
Feedrate (mm/s): 26.0
|
||||
Open File to be Speeded
|
||||
Do Not Add Flowrate False
|
||||
Metric False
|
||||
PWM Setting True
|
||||
Flowrate PWM Setting (if PWM Setting is Chosen): 255.0
|
||||
Orbital Feedrate over Operating Feedrate (ratio): 1.0
|
||||
Perimeter Feedrate over Operating Feedrate (ratio): 1.0
|
||||
Perimeter Flowrate over Operating Flowrate (ratio): 1.0
|
||||
Support Flowrate over Operating Flowrate (ratio): 1.0
|
||||
Travel Feedrate (mm/s): 55.0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,6 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Statistic True
|
||||
Open File to Generate Statistics for
|
||||
Print Statistics True
|
||||
Save Statistics False
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,8 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Stretch False
|
||||
Loop Stretch Over Extrusion Width (ratio): 0.15
|
||||
Path Stretch Over Extrusion Width (ratio): 0.0
|
||||
Open File to be Stretched
|
||||
Stretch From Distance Over Extrusion Width (ratio): 2.0
|
||||
Perimeter Maximum Stretch Over Extrusion Width (ratio): 0.3
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,7 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Tower False
|
||||
Extruder Possible Collision Cone Angle (degrees): 60.0
|
||||
Open File to be Towered
|
||||
Maximum Tower Height (layers): 10
|
||||
Tower Start Layer (integer): 2
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,6 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Unpause False
|
||||
Delay (milliseconds): 28.0
|
||||
Open File to be Unpaused
|
||||
Maximum Speed (ratio): 1.5
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,6 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Vectorwrite False
|
||||
Open File to Write Vector Graphics for
|
||||
Minimum Number of Layers for Multiple Files (integer): 10
|
||||
Pixels over Extrusion Width (ratio): 5.0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,14 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Wipe False
|
||||
Open File to be Wiped
|
||||
Location Arrival X (mm): -70.0
|
||||
Location Arrival Y (mm): -50.0
|
||||
Location Arrival Z (mm): 50.0
|
||||
Location Departure X (mm): -70.0
|
||||
Location Departure Y (mm): -40.0
|
||||
Location Departure Z (mm): 50.0
|
||||
Location Wipe X (mm): -70.0
|
||||
Location Wipe Y (mm): -70.0
|
||||
Location Wipe Z (mm): 50.0
|
||||
Wipe Period (layers): 3
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,324 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>skeinforge</strong></big></big> ($Date: 2008/21/11 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge.py</a></font></td></tr></table>
|
||||
<p><tt>Introduction<br>
|
||||
<br>
|
||||
Skeinforge is a GPL tool chain to forge a gcode skein for a model.<br>
|
||||
<br>
|
||||
The tool chain starts with carve, which carves the model into layers, then the layers are modified by other tools in turn like<br>
|
||||
fill, comb, tower, raft, stretch, hop, wipe, oozebane, fillet & export. Each tool automatically gets the gcode from the<br>
|
||||
previous tool. So if you want a carved & filled gcode, call the fill tool and it will call carve, then it will fill and output the<br>
|
||||
gcode. If you want to use all the tools, call export and it will call in turn all the other tools down the chain to produce the gcode file.<br>
|
||||
<br>
|
||||
The skeinforge module provides a single place to call up all the preference dialogs. When the 'Skeinforge' button is clicked,<br>
|
||||
skeinforge calls export, since that is the end of the chain.<br>
|
||||
<br>
|
||||
To run skeinforge, type in a shell in the same folder as skeinforge:<br>
|
||||
> python skeinforge.py<br>
|
||||
<br>
|
||||
To run only fill for example, type in the skeinforge_tools folder which fill is in:<br>
|
||||
> python fill.py<br>
|
||||
<br>
|
||||
If you do not want a tool after fill to modify the output, deselect the Activate checkbox for that tool. When the Activate checkbox<br>
|
||||
is off, the tool will just hand off the gcode to the next tool without modifying it.<br>
|
||||
<br>
|
||||
There are also tools which handle preferences for the chain, like material & polyfile.<br>
|
||||
<br>
|
||||
The analyze tool calls plugins in the analyze_plugins folder, which will analyze the gcode in some way when it is generated if<br>
|
||||
their Activate checkbox is selected.<br>
|
||||
<br>
|
||||
The interpret tool accesses and displays the import plugins.<br>
|
||||
<br>
|
||||
The default preferences are similar to those on Nophead's machine. A preference which is often different is the<br>
|
||||
'Extrusion Diameter' in carve.<br>
|
||||
<br>
|
||||
<br>
|
||||
Alternative<br>
|
||||
<br>
|
||||
Another way to make gcode for a model is to use the Java RepRap host program, described at:<br>
|
||||
<a href="http://dev.www.reprap.org/bin/view/Main/DriverSoftware#Creating_GCode_files_from_STL_fi">http://dev.www.reprap.org/bin/view/Main/DriverSoftware#Creating_GCode_files_from_STL_fi</a><br>
|
||||
<br>
|
||||
<br>
|
||||
Getting Started<br>
|
||||
<br>
|
||||
For skeinforge to run, install python 2.x on your machine, which is available from:<br>
|
||||
<a href="http://www.python.org/download/">http://www.python.org/download/</a><br>
|
||||
<br>
|
||||
To use the preferences dialog you'll also need Tkinter, which probably came with the python installation. If it did not, look for it at:<br>
|
||||
<a href="http://www.tcl.tk/software/tcltk/">http://www.tcl.tk/software/tcltk/</a><br>
|
||||
<br>
|
||||
If you want python and Tkinter together on MacOS, you can try:<br>
|
||||
<a href="http://www.astro.washington.edu/owen/PythonOnMacOSX.html">http://www.astro.washington.edu/owen/PythonOnMacOSX.html</a><br>
|
||||
<br>
|
||||
If you want python and Tkinter together on all platforms and don't mind filling out forms, you can try the ActivePython package<br>
|
||||
from Active State at:<br>
|
||||
<a href="http://www.activestate.com/Products/activepython/feature_list.mhtml">http://www.activestate.com/Products/activepython/feature_list.mhtml</a><br>
|
||||
<br>
|
||||
Skeinforge imports Stereolithography (.stl) files or GNU Triangulated Surface (.gts) files. The import plugin for STL files is<br>
|
||||
experimental and if it doesn't work, an indirect way to import an STL file is by turning it into a GTS file is by using the Export GNU<br>
|
||||
Triangulated Surface script at:<br>
|
||||
<a href="http://members.axion.net/~enrique/Export%20GNU%20Triangulated%20Surface.bsh">http://members.axion.net/~enrique/Export%20GNU%20Triangulated%20Surface.bsh</a><br>
|
||||
<br>
|
||||
The Export GNU Triangulated Surface script is also in the Art of Illusion folder, which is in the same folder as skeinforge.py. To<br>
|
||||
bring the script into Art of Illusion, drop it into the folder ArtOfIllusion/Scripts/Tools/. Then import the STL file using the STL<br>
|
||||
import plugin in the import submenu of the Art of Illusion file menu. Then from the Scripts submenu in the Tools menu, choose<br>
|
||||
'Export GNU Triangulated Surface' and select the imported STL shape. Click the 'Export Selected' checkbox and click OK.<br>
|
||||
Once you've created the GTS file, you can turn it into gcode by typing in a shell in the same folder as skeinforge:<br>
|
||||
> python skeinforge.py<br>
|
||||
<br>
|
||||
When the skeinforge dialog pops up, click 'Skeinforge', choose the file which you exported in 'Export GNU Triangulated Surface'<br>
|
||||
and the gcode file will be saved with the suffix '_export.gcode'.<br>
|
||||
<br>
|
||||
Or you can turn files into gcode by adding the file name, for example:<br>
|
||||
> python skeinforge.py Screw Holder Bottom.stl<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
End of the Beginning<br>
|
||||
<br>
|
||||
When carve is generating the code, if there is a file start.txt, it will add that to the very beginning of the gcode. After it has<br>
|
||||
added some initialization code and just before it adds the extrusion gcode, it will add the file endofthebeginning.txt if it exists.<br>
|
||||
At the very end, it will add the file end.txt if it exists. Carve does not care if the text file names are capitalized, but some file<br>
|
||||
systems do not handle file name cases properly, so to be on the safe side you should give them lower case names. It will<br>
|
||||
first look for the file in the same directory as carve, if it does not find it it will look in ~/.skeinforge/gcode_scripts.<br>
|
||||
<br>
|
||||
The computation intensive python modules will use psyco if it is available and run about twice as fast. Psyco is described at:<br>
|
||||
<a href="http://psyco.sourceforge.net/index.html">http://psyco.sourceforge.net/index.html</a><br>
|
||||
<br>
|
||||
The psyco download page is:<br>
|
||||
<a href="http://psyco.sourceforge.net/download.html">http://psyco.sourceforge.net/download.html</a><br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Documentation<br>
|
||||
<br>
|
||||
The documentation is in the documentation folder, in the doc strings for each module and it can be called from the '?'<br>
|
||||
button in each preference dialog.<br>
|
||||
<br>
|
||||
To modify the documentation for this program, modify the first comment in the desired module. Then open a shell in<br>
|
||||
the skeinforge.py directory, then type:<br>
|
||||
> pydoc -w ./'<br>
|
||||
<br>
|
||||
Then move all the generated html files to the documentation folder.<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Fabrication<br>
|
||||
<br>
|
||||
To fabricate a model with gcode and the Arduino you can use the send.py in the fabricate folder. The documentation for it is<br>
|
||||
in the folder as send.html and at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/ArduinoSend">http://reprap.org/bin/view/Main/ArduinoSend</a><br>
|
||||
<br>
|
||||
Another way is to use an EMC2 or similar computer controlled milling machine, as described in the "ECM2 based repstrap"<br>
|
||||
forum thread at:<br>
|
||||
<a href="http://forums.reprap.org/read.php?1,12143">http://forums.reprap.org/read.php?1,12143</a><br>
|
||||
<br>
|
||||
using the M-Apps package, which is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?1,file=772">http://forums.reprap.org/file.php?1,file=772</a><br>
|
||||
<br>
|
||||
Another way is to use Zach's ReplicatorG at:<br>
|
||||
<a href="http://replicat.org/">http://replicat.org/</a><br>
|
||||
<br>
|
||||
There is also an older Processing script at:<br>
|
||||
<a href="http://reprap.svn.sourceforge.net/viewvc/reprap/trunk/users/hoeken/arduino/GCode_Host/">http://reprap.svn.sourceforge.net/viewvc/reprap/trunk/users/hoeken/arduino/GCode_Host/</a><br>
|
||||
<br>
|
||||
Yet another way is to use the reprap host, written in Java, to load and print gcode:<br>
|
||||
<a href="http://dev.www.reprap.org/bin/view/Main/DriverSoftware#Load_GCode">http://dev.www.reprap.org/bin/view/Main/DriverSoftware#Load_GCode</a><br>
|
||||
<br>
|
||||
For jogging, the Metalab group wrote their own exerciser, also in Processing:<br>
|
||||
<a href="http://reprap.svn.sourceforge.net/viewvc/reprap/trunk/users/metalab/processing/GCode_Exerciser/">http://reprap.svn.sourceforge.net/viewvc/reprap/trunk/users/metalab/processing/GCode_Exerciser/</a><br>
|
||||
<br>
|
||||
The Metalab group has descriptions of skeinforge in action and their adventures are described at:<br>
|
||||
<a href="http://reprap.soup.io/">http://reprap.soup.io/</a><br>
|
||||
<br>
|
||||
<br>
|
||||
File Formats<br>
|
||||
<br>
|
||||
An explanation of the gcodes is at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
|
||||
<br>
|
||||
and at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/MCodeReference">http://reprap.org/bin/view/Main/MCodeReference</a><br>
|
||||
<br>
|
||||
A gode example is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a><br>
|
||||
<br>
|
||||
The preferences are saved as tab separated .csv files in the .skeinforge folder in your home directory. The preferences can<br>
|
||||
be set in the tool dialogs. The .csv files can also be edited with a text editor or a spreadsheet program set to separate tabs.<br>
|
||||
<br>
|
||||
The Scalable Vector Graphics file produced by vectorwrite can be opened by an SVG viewer or an SVG capable browser<br>
|
||||
like Mozilla:<br>
|
||||
<a href="http://www.mozilla.com/firefox/">http://www.mozilla.com/firefox/</a><br>
|
||||
<br>
|
||||
A good triangle surface format is the GNU Triangulated Surface format, which is supported by Mesh Viewer and described at:<br>
|
||||
<a href="http://gts.sourceforge.net/reference/gts-surfaces.html#GTS-SURFACE-WRITE">http://gts.sourceforge.net/reference/gts-surfaces.html#GTS-SURFACE-WRITE</a><br>
|
||||
<br>
|
||||
You can export GTS files from Art of Illusion with the Export GNU Triangulated Surface.bsh script in the Art of Illusion Scripts<br>
|
||||
folder.<br>
|
||||
<br>
|
||||
STL is an inferior triangle surface format, described at:<br>
|
||||
<a href="http://en.wikipedia.org/wiki/STL_(file_format">http://en.wikipedia.org/wiki/STL_(file_format</a>)<br>
|
||||
<br>
|
||||
If you're using an STL file and you can't even carve it, try converting it to a GNU Triangulated Surface file in Art of Illusion. If<br>
|
||||
it still doesn't carve, then follow the advice in the troubleshooting section.<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Getting Skeinforge<br>
|
||||
<br>
|
||||
The latest version is in the last reprap_python_beanshell.zip attachment in the "How to Print Gcode from Host" thread at:<br>
|
||||
<a href="http://forums.reprap.org/read.php?12,10772">http://forums.reprap.org/read.php?12,10772</a><br>
|
||||
<br>
|
||||
a sometimes out of date version is at:<br>
|
||||
<a href="http://members.axion.net/~enrique/reprap_python_beanshell.zip">http://members.axion.net/~enrique/reprap_python_beanshell.zip</a><br>
|
||||
<br>
|
||||
another sometimes out of date version is at:<br>
|
||||
https://reprap.svn.sourceforge.net/svnroot/reprap/trunk/reprap/miscellaneous/python-beanshell-scripts/<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Motto<br>
|
||||
<br>
|
||||
I may be slow, but I get there in the end.<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
Troubleshooting<br>
|
||||
<br>
|
||||
If there's a bug, try downloading the very latest version because sometimes I update without posting.<br>
|
||||
<br>
|
||||
Then you can ask for skeinforge help by sending a private message through the forum software by going to my page at:<br>
|
||||
<a href="http://forums.reprap.org/profile.php?12,488">http://forums.reprap.org/profile.php?12,488</a><br>
|
||||
<br>
|
||||
or posting in the "Skeinforge Powwow" thread at:<br>
|
||||
<a href="http://forums.reprap.org/read.php?12,20013">http://forums.reprap.org/read.php?12,20013</a><br>
|
||||
<br>
|
||||
When asking for help please include your object and your zipped skeinforge preferences. The skeinforge preferences are in<br>
|
||||
the .skeinforge folder in your home directory.<br>
|
||||
<br>
|
||||
<br>
|
||||
Examples<br>
|
||||
<br>
|
||||
The following examples carve and dice the STL file Screw Holder.stl. The examples are run in a terminal in the folder which<br>
|
||||
contains Screw Holder.gts and skeinforge.py.<br>
|
||||
<br>
|
||||
> python skeinforge.py<br>
|
||||
This brings up the dialog, after clicking 'Skeinforge', the following is printed:<br>
|
||||
The exported file is saved as Screw Holder_export.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python skeinforge.py Screw Holder.stl<br>
|
||||
The exported file is saved as Screw Holder_export.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import skeinforge<br>
|
||||
>>> skeinforge.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
The exported file is saved as Screw Holder_export.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> skeinforge.<a href="#-main">main</a>()<br>
|
||||
This brings up the skeinforge dialog.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge.html#SkeinforgePreferences">SkeinforgePreferences</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SkeinforgePreferences">class <strong>SkeinforgePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the skeinforge preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SkeinforgePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinforgePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Skeinforge button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getSkeinforgeToolFilenames"><strong>getSkeinforgeToolFilenames</strong></a>()</dt><dd><tt>Get skeinforge plugin fileNames.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the skeinforge dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Skeinforge a gcode file. If no fileName is specified, skeinforge the first gcode file in this folder that is not modified.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = '<font color="#c040c0">\n</font>Adrian Bowyer <http://forums.reprap.org/profile...:<font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/11 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><br>
|
||||
Adrian Bowyer <<a href="http://forums.reprap.org/profile.php?12,13">http://forums.reprap.org/profile.php?12,13</a>><br>
|
||||
Brendan Erwin <<a href="http://forums.reprap.org/profile.php?12,217">http://forums.reprap.org/profile.php?12,217</a>><br>
|
||||
Greenarrow <<a href="http://forums.reprap.org/profile.php?12,81">http://forums.reprap.org/profile.php?12,81</a>><br>
|
||||
Ian England <<a href="http://forums.reprap.org/profile.php?12,192">http://forums.reprap.org/profile.php?12,192</a>><br>
|
||||
John Gilmore <<a href="http://forums.reprap.org/profile.php?12,364">http://forums.reprap.org/profile.php?12,364</a>><br>
|
||||
Jonwise <<a href="http://forums.reprap.org/profile.php?12,716">http://forums.reprap.org/profile.php?12,716</a>><br>
|
||||
Kyle Corbitt <<a href="http://forums.reprap.org/profile.php?12,90">http://forums.reprap.org/profile.php?12,90</a>><br>
|
||||
Michael Duffin <<a href="http://forums.reprap.org/profile.php?12,930">http://forums.reprap.org/profile.php?12,930</a>><br>
|
||||
Marius Kintel <<a href="http://reprap.soup.io/">http://reprap.soup.io/</a>><br>
|
||||
Nophead <<a href="http://www.blogger.com/profile/12801535866788103677">http://www.blogger.com/profile/12801535866788103677</a>><br>
|
||||
PJR <<a href="http://forums.reprap.org/profile.php?12,757">http://forums.reprap.org/profile.php?12,757</a>><br>
|
||||
Reece.Arnott <<a href="http://forums.reprap.org/profile.php?12,152">http://forums.reprap.org/profile.php?12,152</a>><br>
|
||||
Wade <<a href="http://forums.reprap.org/profile.php?12,489">http://forums.reprap.org/profile.php?12,489</a>><br>
|
||||
Xsainnz <<a href="http://forums.reprap.org/profile.php?12,563">http://forums.reprap.org/profile.php?12,563</a>><br>
|
||||
Zach Hoeken <<a href="http://blog.zachhoeken.com/">http://blog.zachhoeken.com/</a>><br>
|
||||
<br>
|
||||
Organizations:<br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,85 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.analyze</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze.py</a></font></td></tr></table>
|
||||
<p><tt>Analyze is a script to access the plugins which analyze a gcode file.<br>
|
||||
<br>
|
||||
An explanation of the gcodes is at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
|
||||
<br>
|
||||
A gode example is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a></tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze.html#AnalyzePreferences">AnalyzePreferences</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="AnalyzePreferences">class <strong>AnalyzePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the analyze preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="AnalyzePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AnalyzePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Analyze button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getAnalyzePluginFilenames"><strong>getAnalyzePluginFilenames</strong></a>()</dt><dd><tt>Get analyze plugin fileNames.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the analyze dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Analyze a gcode file. If no fileName is specified, comment the first gcode file in this folder that is not modified.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,80 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.analyze_utilities.enrique</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.<a href="skeinforge_tools.analyze_plugins.analyze_utilities.html"><font color="#ffffff">analyze_utilities</font></a>.enrique</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/enrique.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/enrique.py</a></font></td></tr></table>
|
||||
<p></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Image.html">Image</a><br>
|
||||
</td><td width="25%" valign=top><a href="ImageChops.html">ImageChops</a><br>
|
||||
</td><td width="25%" valign=top><a href="ImageDraw.html">ImageDraw</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.analyze_utilities.enrique.html#g2gif">g2gif</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="g2gif">class <strong>g2gif</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="g2gif-__init__"><strong>__init__</strong></a>(self, fileName, outfile)</dt></dl>
|
||||
|
||||
<dl><dt><a name="g2gif-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt></dl>
|
||||
|
||||
<dl><dt><a name="g2gif-parseLine"><strong>parseLine</strong></a>(self, line)</dt></dl>
|
||||
|
||||
<dl><dt><a name="g2gif-scale"><strong>scale</strong></a>(self, x, y)</dt></dl>
|
||||
|
||||
<dl><dt><a name="g2gif-setFeedrate"><strong>setFeedrate</strong></a>(self, splitLine)</dt><dd><tt># Set the feedrate to the gcode split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="g2gif-setPointComponent"><strong>setPointComponent</strong></a>(self, point, splitLine)</dt><dd><tt># Set a point to the gcode split line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getDoubleAfterFirstLetter"><strong>getDoubleAfterFirstLetter</strong></a>(word)</dt><dd><tt># Get the double value of the word after the first letter.<br>
|
||||
# @param word string with value starting after the first letter<br>
|
||||
# @return double value of the word after the first letter</tt></dd></dl>
|
||||
<dl><dt><a name="-getDoubleForLetter"><strong>getDoubleForLetter</strong></a>(letter, splitLine)</dt><dd><tt># Get the double value of the word after the first occurence of the letter in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileText"><strong>getFileText</strong></a>(fileName)</dt><dd><tt># Get the entire text of a file.<br>
|
||||
# @param fileName name of the file<br>
|
||||
# @return entire text of a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt># Get the all the lines of text of a text.<br>
|
||||
# @param text text<br>
|
||||
# @return the lines of text of a text</tt></dd></dl>
|
||||
<dl><dt><a name="-indexOfStartingWithSecond"><strong>indexOfStartingWithSecond</strong></a>(letter, splitLine)</dt><dd><tt># Get index of the first occurence of the given letter in the split line, starting with the second word. Return - 1 if letter is not found</tt></dd></dl>
|
||||
<dl><dt><a name="-makedelta"><strong>makedelta</strong></a>(fp, sequence)</dt><dd><tt>Convert list of image frames to a GIF animation file</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,76 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.analyze_utilities.gRead</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.<a href="skeinforge_tools.analyze_plugins.analyze_utilities.html"><font color="#ffffff">analyze_utilities</font></a>.gRead</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/gRead.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/gRead.py</a></font></td></tr></table>
|
||||
<p></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.analyze_utilities.gRead.html#gRead">gRead</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="gRead">class <strong>gRead</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="gRead-__init__"><strong>__init__</strong></a>(self, fileName, layers, gcodeText<font color="#909090">=''</font>)</dt></dl>
|
||||
|
||||
<dl><dt><a name="gRead-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt></dl>
|
||||
|
||||
<dl><dt><a name="gRead-newLayer"><strong>newLayer</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="gRead-newThread"><strong>newThread</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="gRead-parseLine"><strong>parseLine</strong></a>(self, line)</dt></dl>
|
||||
|
||||
<dl><dt><a name="gRead-setPointComponent"><strong>setPointComponent</strong></a>(self, point, splitLine)</dt><dd><tt># Set a point to the gcode split line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getDoubleAfterFirstLetter"><strong>getDoubleAfterFirstLetter</strong></a>(word)</dt><dd><tt># Get the double value of the word after the first letter.<br>
|
||||
# @param word string with value starting after the first letter<br>
|
||||
# @return double value of the word after the first letter</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileText"><strong>getFileText</strong></a>(fileName)</dt><dd><tt># Get the entire text of a file.<br>
|
||||
# @param fileName name of the file<br>
|
||||
# @return entire text of a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt># Get the all the lines of text of a text.<br>
|
||||
# @param text text<br>
|
||||
# @return the lines of text of a text</tt></dd></dl>
|
||||
<dl><dt><a name="-indexOfStartingWithSecond"><strong>indexOfStartingWithSecond</strong></a>(letter, splitLine)</dt><dd><tt># Get index of the first occurence of the given letter in the split line, starting with the second word. Return - 1 if letter is not found</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: package skeinforge_tools.analyze_plugins.analyze_utilities</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.analyze_utilities</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/__init__.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/__init__.py</a></font></td></tr></table>
|
||||
<p><tt>#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.analyze_utilities.enrique.html">enrique</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.analyze_utilities.gRead.html">gRead</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.analyze_utilities.layers.html">layers</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.analyze_utilities.preview.html">preview</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>level</strong> = 3<br>
|
||||
<strong>numberOfLevelsDeepInPackageHierarchy</strong> = 3<br>
|
||||
<strong>packageFilePath</strong> = '/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap'</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.analyze_utilities.layers</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.<a href="skeinforge_tools.analyze_plugins.analyze_utilities.html"><font color="#ffffff">analyze_utilities</font></a>.layers</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/layers.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/layers.py</a></font></td></tr></table>
|
||||
<p></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Image.html">Image</a><br>
|
||||
</td><td width="25%" valign=top><a href="ImageDraw.html">ImageDraw</a><br>
|
||||
</td><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-bounding_cube"><strong>bounding_cube</strong></a>(layers)</dt></dl>
|
||||
<dl><dt><a name="-make_images"><strong>make_images</strong></a>(layers)</dt></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.analyze_utilities.preview</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.<a href="skeinforge_tools.analyze_plugins.analyze_utilities.html"><font color="#ffffff">analyze_utilities</font></a>.preview</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/preview.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/preview.py</a></font></td></tr></table>
|
||||
<p></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Image.html">Image</a><br>
|
||||
<a href="ImageDraw.html">ImageDraw</a><br>
|
||||
</td><td width="25%" valign=top><a href="ImageTk.html">ImageTk</a><br>
|
||||
<a href="Tkinter.html">Tkinter</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.analyze_utilities.preview.html#Preview">Preview</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Preview">class <strong>Preview</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Preview-__init__"><strong>__init__</strong></a>(self, layers)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Preview-down"><strong>down</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Preview-up"><strong>up</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Preview-update"><strong>update</strong></a>(self)</dt></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-viewGif"><strong>viewGif</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,322 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.behold</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.behold</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/behold.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/behold.py</a></font></td></tr></table>
|
||||
<p><tt>Behold is an analysis script to display a gcode file in an isometric view.<br>
|
||||
<br>
|
||||
The default 'Activate Behold' checkbox is on. When it is on, the functions described below will work when called from the<br>
|
||||
skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether<br>
|
||||
or not the 'Activate Behold' checkbox is on, when behold is run directly. Behold can not separate the layers when it reads<br>
|
||||
gcode without comments.<br>
|
||||
<br>
|
||||
The viewer is simple, the viewpoint can only be moved in a sphere around the center of the model by changing the viewpoint<br>
|
||||
latitude and longitude. Different regions of the model can be hidden by setting the width of the thread to zero. The alternating<br>
|
||||
bands act as contour bands and their brightness and width can be changed. The layers will be displayed starting at the "Layer<br>
|
||||
From" index up until the "Layer To" index. All of the preferences can be set in the initial "Behold Preferences" window and<br>
|
||||
some can be changed after the viewer is running in the "Behold Dynamic Preferences" window. In the viewer, dragging the<br>
|
||||
mouse will change the viewpoint.<br>
|
||||
<br>
|
||||
The "Band Height" is height of the band in layers, with the default of five, a pair of bands is ten layers high. The "Bottom Band<br>
|
||||
Brightness" is the ratio of the brightness of the bottom band over the brightness of the top band, the default is 0.7. The "Bottom<br>
|
||||
Layer Brightness" is the ratio of the brightness of the bottom layer over the brightness of the top layer, the default is 1.0. With a<br>
|
||||
low bottom layer brightness ratio the bottom of the model will be darker than the top of the model, as if it was being illuminated<br>
|
||||
by a light just above the top. The "Bright Band Start" button group determines where the bright band starts from. If the "From<br>
|
||||
the Bottom" choice is selected, the bright bands will start from the bottom. If the default "From the Top" choice is selected, the<br>
|
||||
bright bands will start from the top.<br>
|
||||
<br>
|
||||
If "Draw Arrows" is selected, arrows will be drawn at the end of each line segment, the default is on. If "Go Around Extruder<br>
|
||||
Off Travel" is selected, the display will include the travel when the extruder is off, which means it will include the nozzle wipe<br>
|
||||
path if any.<br>
|
||||
<br>
|
||||
The "Layer From" is the index of the bottom layer that will be displayed. If the layer from is the default zero, the display will<br>
|
||||
start from the lowest layer. If the the layer from index is negative, then the display will start from the layer from index below the<br>
|
||||
top layer. The "Layer To" is the index of the top layer that will be displayed. If the layer to index is a huge number like the<br>
|
||||
default 999999999, the display will go to the top of the model, at least until we model habitats:) If the layer to index is negative,<br>
|
||||
then the display will go to the layer to index below the top layer. The layer from until layer to index is a python slice.<br>
|
||||
<br>
|
||||
The "Number of Fill Bottom Layers" is the number of layers at the bottom which will be colored olive. The "Number of Fill Bottom<br>
|
||||
Layers" is the number of layers at the top which will be colored blue.<br>
|
||||
<br>
|
||||
The "Pixels over Extrusion Width" preference is the scale of the image, the higher the number, the greater the size of the display.<br>
|
||||
The "Screen Horizontal Inset" determines how much the display will be inset in the horizontal direction from the edge of screen,<br>
|
||||
the higher the number the more it will be inset and the smaller it will be, the default is one hundred. The "Screen Vertical Inset"<br>
|
||||
determines how much the display will be inset in the vertical direction from the edge of screen, the default is fifty.<br>
|
||||
<br>
|
||||
The "Viewpoint Latitude" is the latitude of the viewpoint, the default is 15 degrees. The "Viewpoint Longitude" is the longitude of<br>
|
||||
the viewpoint, the default is 210 degrees. The viewpoint can also be moved by dragging the mouse. The viewpoint latitude will<br>
|
||||
be increased when the mouse is dragged from the center towards the edge. The viewpoint longitude will be changed by the<br>
|
||||
amount around the center the mouse is dragged. This is not very intuitive, but I don't know how to do this the intuitive way and<br>
|
||||
I have other stuff to develop. If the shift key is pressed; if the latitude is changed more than the longitude, only the latitude will<br>
|
||||
be changed, if the longitude is changed more only the longitude will be changed.<br>
|
||||
<br>
|
||||
The "Width of Extrusion Thread" sets the width of the green extrusion threads, those threads which are not loops and not part of<br>
|
||||
the raft. The default is one, if the width is zero the extrusion threads will be invisible. The "Width of Fill Bottom Thread" sets<br>
|
||||
the width of the olive extrusion threads at the bottom of the model, the default is three. The "Width of Fill Top Thread" sets the<br>
|
||||
width of the blue extrusion threads at the top of the model, the default is three. The "Width of Loop Thread" sets the width of the<br>
|
||||
yellow loop threads, which are not perimeters, the default is three. The "Width of Perimeter Inside Thread" sets the width of the<br>
|
||||
orange inside perimeter threads, the default is three. The "Width of Perimeter Outside Thread" sets the width of the red outside<br>
|
||||
perimeter threads, the default is three. The "Width of Raft Thread" sets the width of the brown raft threads, the default is one.<br>
|
||||
The "Width of Travel Thread" sets the width of the gray extruder off travel threads, the default is zero.<br>
|
||||
<br>
|
||||
The "Width of X Axis" preference sets the width of the dark orange X Axis, the default is five pixels. The "Width of Y Axis" sets<br>
|
||||
the width of the gold Y Axis, the default is five. The "Width of Z Axis" sets the width of the sky blue Z Axis, the default is five.<br>
|
||||
<br>
|
||||
To run behold, in a shell in the folder which behold is in type:<br>
|
||||
> python behold.py<br>
|
||||
<br>
|
||||
An explanation of the gcodes is at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
|
||||
<br>
|
||||
and at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/MCodeReference">http://reprap.org/bin/view/Main/MCodeReference</a><br>
|
||||
<br>
|
||||
A gode example is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a><br>
|
||||
<br>
|
||||
This example lets the viewer behold the gcode file Screw Holder.gcode. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder.gcode and behold.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python behold.py<br>
|
||||
This brings up the behold dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python behold.py Screw Holder.gcode<br>
|
||||
This brings up the behold dialog to view the gcode file.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import behold<br>
|
||||
>>> behold.<a href="#-main">main</a>()<br>
|
||||
This brings up the behold dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> behold.<a href="#-beholdFile">beholdFile</a>()<br>
|
||||
This brings up the behold window to view the gcode file.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#BeholdPreferences">BeholdPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#BeholdSkein">BeholdSkein</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#ColoredLine">ColoredLine</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#LatitudeLongitude">LatitudeLongitude</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#SkeinPane">SkeinPane</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#SkeinWindow">SkeinWindow</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.behold.html#ViewVectors">ViewVectors</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="BeholdPreferences">class <strong>BeholdPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the behold preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="BeholdPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdPreferences-displayImmediateUpdateDialog"><strong>displayImmediateUpdateDialog</strong></a>(self)</dt><dd><tt>Display the immediate update dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Write button has been clicked.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdPreferences-setToDisplaySaveUpdate"><strong>setToDisplaySaveUpdate</strong></a>(self, event<font color="#909090">=None</font>)</dt><dd><tt>Set the preference values to the display, save the new values, then call the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdPreferences-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function of the update preferences.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="BeholdSkein">class <strong>BeholdSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to write a get a scalable vector graphics text for a gcode skein.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="BeholdSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-addToPath"><strong>addToPath</strong></a>(self, line, location)</dt><dd><tt>Add a point to travel and maybe extrusion.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-getLayerTop"><strong>getLayerTop</strong></a>(self)</dt><dd><tt>Get the layer top.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-getLayerZoneIndex"><strong>getLayerZoneIndex</strong></a>(self, z)</dt><dd><tt>Get the layer zone index.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-initializeActiveLocation"><strong>initializeActiveLocation</strong></a>(self)</dt><dd><tt>Set variables to default.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-isLayerStart"><strong>isLayerStart</strong></a>(self, firstWord, splitLine)</dt><dd><tt>Parse a gcode line and add it to the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-linearCorner"><strong>linearCorner</strong></a>(self, splitLine)</dt><dd><tt>Update the bounding corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-linearMove"><strong>linearMove</strong></a>(self, line, splitLine)</dt><dd><tt>Get statistics for a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-moveColoredThreadToSkeinPane"><strong>moveColoredThreadToSkeinPane</strong></a>(self)</dt><dd><tt>Move a colored thread to the skein pane.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-parseCorner"><strong>parseCorner</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and use the location to update the bounding corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, beholdPreferences)</dt><dd><tt>Parse gcode text and store the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-setColoredLineColor"><strong>setColoredLineColor</strong></a>(self, coloredLine, colorTuple)</dt><dd><tt>Set the color and stipple of the colored line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BeholdSkein-setColoredThread"><strong>setColoredThread</strong></a>(self, colorTuple, lineList)</dt><dd><tt>Set the colored thread, then move it to the line list and stipple of the colored line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ColoredLine">class <strong>ColoredLine</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A colored line.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ColoredLine-__init__"><strong>__init__</strong></a>(self, begin, colorName, end, tagString)</dt><dd><tt>Set the color name and corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ColoredLine-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this colored line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="LatitudeLongitude">class <strong>LatitudeLongitude</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A latitude and longitude.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="LatitudeLongitude-__init__"><strong>__init__</strong></a>(self, newCoordinate, skeinWindow, shift)</dt><dd><tt>Set the latitude and longitude.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SkeinPane">class <strong>SkeinPane</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to hold the colored lines for a layer.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SkeinPane-__init__"><strong>__init__</strong></a>(self, sequenceIndex)</dt><dd><tt>Create empty line lists.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SkeinWindow">class <strong>SkeinWindow</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SkeinWindow-__init__"><strong>__init__</strong></a>(self, beholdPreferences, size, skeinPanes)</dt><dd><tt>Initialize the skein window.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-buttonOneClicked"><strong>buttonOneClicked</strong></a>(self, event)</dt><dd><tt>Print the line that was clicked on by the left button.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-buttonOneReleased"><strong>buttonOneReleased</strong></a>(self, event, shift<font color="#909090">=False</font>)</dt><dd><tt>Move the viewpoint if the mouse was released.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-buttonOneReleasedShift"><strong>buttonOneReleasedShift</strong></a>(self, event)</dt><dd><tt>Move the viewpoint if the mouse was released and the shift key was pressed.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-drawColoredLine"><strong>drawColoredLine</strong></a>(self, coloredLine, viewVectors, width)</dt><dd><tt>Draw colored line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-drawColoredLineMotion"><strong>drawColoredLineMotion</strong></a>(self, coloredLine, viewVectors, width)</dt><dd><tt>Draw colored line with motion stipple and tag.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-drawColoredLines"><strong>drawColoredLines</strong></a>(self, coloredLines, viewVectors, width)</dt><dd><tt>Draw colored lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-drawSkeinPane"><strong>drawSkeinPane</strong></a>(self, skeinPane, viewVectors)</dt><dd><tt>Draw colored lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-drawXYAxisLines"><strong>drawXYAxisLines</strong></a>(self, viewVectors)</dt><dd><tt>Draw the x and y axis lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-drawZAxisLine"><strong>drawZAxisLine</strong></a>(self, viewVectors)</dt><dd><tt>Draw the z axis line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-getCentered"><strong>getCentered</strong></a>(self, coordinate)</dt><dd><tt>Get the centered coordinate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-getCenteredScreened"><strong>getCenteredScreened</strong></a>(self, coordinate)</dt><dd><tt>Get the normalized centered coordinate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-getScreenComplex"><strong>getScreenComplex</strong></a>(self, pointComplex)</dt><dd><tt>Get the point in screen perspective.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-getViewComplex"><strong>getViewComplex</strong></a>(self, point, viewVectors)</dt><dd><tt>Get the point in view perspective.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-leave"><strong>leave</strong></a>(self, event)</dt><dd><tt>Null the button one pressed coordinate because the mouse has left the canvas.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-motion"><strong>motion</strong></a>(self, event, shift<font color="#909090">=False</font>)</dt><dd><tt>Move the viewpoint if the mouse was moved.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-motionShift"><strong>motionShift</strong></a>(self, event)</dt><dd><tt>Move the viewpoint if the mouse was moved and the shift key was pressed.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-printHexadecimalColorName"><strong>printHexadecimalColorName</strong></a>(self, name)</dt><dd><tt>Print the color name in hexadecimal.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-update"><strong>update</strong></a>(self)</dt><dd><tt>Update the screen.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ViewVectors">class <strong>ViewVectors</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ViewVectors-__init__"><strong>__init__</strong></a>(self, viewpointLatitude, viewpointLongitude)</dt><dd><tt>Initialize the view vectors.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-beholdFile"><strong>beholdFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Behold a gcode file. If no fileName is specified, behold the first gcode file in this folder that is not modified.</tt></dd></dl>
|
||||
<dl><dt><a name="-compareLayerSequence"><strong>compareLayerSequence</strong></a>(first, second)</dt><dd><tt>Get comparison in order to sort skein panes in ascending order of layer zone index then sequence index.</tt></dd></dl>
|
||||
<dl><dt><a name="-displayBeholdFileGivenText"><strong>displayBeholdFileGivenText</strong></a>(gcodeText, beholdPreferences<font color="#909090">=None</font>)</dt><dd><tt>Display a beholded gcode file for a gcode file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getBoundedLatitude"><strong>getBoundedLatitude</strong></a>(latitude)</dt><dd><tt>Get the bounded latitude.later get rounded</tt></dd></dl>
|
||||
<dl><dt><a name="-getPolygonComplexFromColoredLines"><strong>getPolygonComplexFromColoredLines</strong></a>(coloredLines)</dt><dd><tt>Get a complex polygon from the colored lines.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTwoHex"><strong>getTwoHex</strong></a>(number)</dt><dd><tt>Get the first two hexadecimal digits.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the behold dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write a beholded gcode file for a skeinforge gcode file, if 'Activate Behold' is selected.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,135 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.comment</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.comment</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/comment.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/comment.py</a></font></td></tr></table>
|
||||
<p><tt>Comment is a script to comment a gcode file.<br>
|
||||
<br>
|
||||
The default 'Activate Comment' checkbox is on. When it is on, the functions described below will work when called from the<br>
|
||||
skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether<br>
|
||||
or not the 'Activate Comment' checkbox is on, when comment is run directly.<br>
|
||||
<br>
|
||||
To run comment, in a shell in the folder which comment is in type:<br>
|
||||
> python comment.py<br>
|
||||
<br>
|
||||
An explanation of the gcodes is at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
|
||||
<br>
|
||||
and at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/MCodeReference">http://reprap.org/bin/view/Main/MCodeReference</a><br>
|
||||
<br>
|
||||
A gode example is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a><br>
|
||||
<br>
|
||||
This example comments the gcode file Screw Holder_comb.gcode. This example is run in a terminal in the folder which contains<br>
|
||||
Screw Holder_comb.gcode and comment.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import comment<br>
|
||||
>>> comment.<a href="#-main">main</a>()<br>
|
||||
This brings up the comment dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> comment.<a href="#-commentFile">commentFile</a>()<br>
|
||||
The commented file is saved as Screw Holder_comb_comment.gcode</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.comment.html#CommentPreferences">CommentPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.comment.html#CommentSkein">CommentSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CommentPreferences">class <strong>CommentPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the comment preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CommentPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CommentPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Write button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CommentSkein">class <strong>CommentSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to comment a gcode skein.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CommentSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CommentSkein-addComment"><strong>addComment</strong></a>(self, comment)</dt><dd><tt>Add a gcode comment and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CommentSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Comment a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CommentSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText)</dt><dd><tt>Parse gcode text and store the commented gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CommentSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the commented gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CommentSkein-setHelicalMoveEndpoint"><strong>setHelicalMoveEndpoint</strong></a>(self, splitLine)</dt><dd><tt>Get the endpoint of a helical move.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-commentFile"><strong>commentFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Comment a gcode file. If no fileName is specified, comment the first gcode file in this folder that is not modified.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCommentGcode"><strong>getCommentGcode</strong></a>(gcodeText)</dt><dd><tt>Get gcode text with added comments.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the comment dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeCommentFileGivenText"><strong>writeCommentFileGivenText</strong></a>(fileName, gcodeText)</dt><dd><tt>Write a commented gcode file for a gcode file.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write a commented gcode file for a skeinforge gcode file, if 'Write Commented File for Skeinforge Chain' is selected.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: package skeinforge_tools.analyze_plugins</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.analyze_plugins</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/__init__.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/__init__.py</a></font></td></tr></table>
|
||||
<p><tt>#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.analyze_utilities.html"><strong>analyze_utilities</strong> (package)</a><br>
|
||||
<a href="skeinforge_tools.analyze_plugins.behold.html">behold</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.comment.html">comment</a><br>
|
||||
<a href="skeinforge_tools.analyze_plugins.skeinview.html">skeinview</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.analyze_plugins.statistic.html">statistic</a><br>
|
||||
<a href="skeinforge_tools.analyze_plugins.vectorwrite.html">vectorwrite</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>level</strong> = 2<br>
|
||||
<strong>numberOfLevelsDeepInPackageHierarchy</strong> = 2<br>
|
||||
<strong>packageFilePath</strong> = '/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap'</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,198 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.skeinview</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.skeinview</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/skeinview.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/skeinview.py</a></font></td></tr></table>
|
||||
<p><tt>Skeinview is a script to display each layer of a gcode file.<br>
|
||||
<br>
|
||||
The default 'Activate Skeinview' checkbox is on. When it is on, the functions described below will work when called from the<br>
|
||||
skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether<br>
|
||||
or not the 'Activate Skeinview' checkbox is on, when skeinview is run directly. Skeinview has trouble separating the layers<br>
|
||||
when it reads gcode without comments.<br>
|
||||
<br>
|
||||
If "Draw Arrows" is selected, arrows will be drawn at the end of each line segment, the default is on. If "Go Around Extruder<br>
|
||||
Off Travel" is selected, the display will include the travel when the extruder is off, which means it will include the nozzle wipe<br>
|
||||
path if any. The "Pixels over Extrusion Width" preference is the scale of the image, the higher the number, the greater the<br>
|
||||
size of the display. The "Screen Horizontal Inset" determines how much the display will be inset in the horizontal direction<br>
|
||||
from the edge of screen, the higher the number the more it will be inset and the smaller it will be, the default is one hundred.<br>
|
||||
The "Screen Vertical Inset" determines how much the display will be inset in the vertical direction from the edge of screen,<br>
|
||||
the default is fifty.<br>
|
||||
<br>
|
||||
On the skeinview display window, the up button increases the layer index shown by one, and the down button decreases the<br>
|
||||
layer index by one. When the index displayed in the index field is changed then "<return>" is hit, the layer index shown will<br>
|
||||
be set to the index field, to a mimimum of zero and to a maximum of the highest index layer.<br>
|
||||
<br>
|
||||
To run skeinview, in a shell in the folder which skeinview is in type:<br>
|
||||
> python skeinview.py<br>
|
||||
<br>
|
||||
An explanation of the gcodes is at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
|
||||
<br>
|
||||
and at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/MCodeReference">http://reprap.org/bin/view/Main/MCodeReference</a><br>
|
||||
<br>
|
||||
A gode example is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a><br>
|
||||
<br>
|
||||
This example displays a skein view for the gcode file Screw Holder.gcode. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder.gcode and skeinview.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python skeinview.py<br>
|
||||
This brings up the skeinview dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python skeinview.py Screw Holder.gcode<br>
|
||||
This brings up a skein window to view each layer of a gcode file.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import skeinview<br>
|
||||
>>> skeinview.<a href="#-main">main</a>()<br>
|
||||
This brings up the skeinview dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> skeinview.<a href="#-skeinviewFile">skeinviewFile</a>()<br>
|
||||
This brings up a skein window to view each layer of a gcode file.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.skeinview.html#ColoredLine">ColoredLine</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.skeinview.html#SkeinWindow">SkeinWindow</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.skeinview.html#SkeinviewPreferences">SkeinviewPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.skeinview.html#SkeinviewSkein">SkeinviewSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ColoredLine">class <strong>ColoredLine</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A colored line.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ColoredLine-__init__"><strong>__init__</strong></a>(self, colorName, complexBegin, complexEnd, line, lineIndex, width)</dt><dd><tt>Set the color name and corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ColoredLine-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this colored line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SkeinWindow">class <strong>SkeinWindow</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SkeinWindow-__init__"><strong>__init__</strong></a>(self, arrowType, screenHorizontalInset, screenVerticalInset, size, skeinPanes)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-buttonOneClicked"><strong>buttonOneClicked</strong></a>(self, event)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-down"><strong>down</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-indexEntryReturnPressed"><strong>indexEntryReturnPressed</strong></a>(self, event)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-up"><strong>up</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SkeinWindow-update"><strong>update</strong></a>(self)</dt></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SkeinviewPreferences">class <strong>SkeinviewPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the skeinview preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SkeinviewPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Write button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SkeinviewSkein">class <strong>SkeinviewSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to write a get a scalable vector graphics text for a gcode skein.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SkeinviewSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-addToPath"><strong>addToPath</strong></a>(self, line, location)</dt><dd><tt>Add a point to travel and maybe extrusion.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-initializeActiveLocation"><strong>initializeActiveLocation</strong></a>(self)</dt><dd><tt>Set variables to default.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-isLayerStart"><strong>isLayerStart</strong></a>(self, firstWord, splitLine)</dt><dd><tt>Parse a gcode line and add it to the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-linearCorner"><strong>linearCorner</strong></a>(self, splitLine)</dt><dd><tt>Update the bounding corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-linearMove"><strong>linearMove</strong></a>(self, line, splitLine)</dt><dd><tt>Get statistics for a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-parseCorner"><strong>parseCorner</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and use the location to update the bounding corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, skeinviewPreferences)</dt><dd><tt>Parse gcode text and store the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SkeinviewSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the vector output.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-displaySkeinviewFileGivenText"><strong>displaySkeinviewFileGivenText</strong></a>(gcodeText, skeinviewPreferences<font color="#909090">=None</font>)</dt><dd><tt>Display a skeinviewed gcode file for a gcode file.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the skeinview dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-skeinviewFile"><strong>skeinviewFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Skeinview a gcode file. If no fileName is specified, skeinview the first gcode file in this folder that is not modified.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write a skeinviewed gcode file for a skeinforge gcode file, if 'Activate Skeinview' is selected.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,146 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.statistic</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.statistic</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/statistic.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/statistic.py</a></font></td></tr></table>
|
||||
<p><tt>Statistic is a script to generate statistics a gcode file.<br>
|
||||
<br>
|
||||
The default 'Activate Statistic' checkbox is on. When it is on, the functions described below will work when called from the<br>
|
||||
skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether<br>
|
||||
or not the 'Activate Statistic' checkbox is on, when statistic is run directly.<br>
|
||||
<br>
|
||||
When the 'Print Statistics' checkbox is on, the statistics will be printed to the console, the default is on. When the 'Save<br>
|
||||
Statistics' checkbox is on, the statistics will be save as a .txt file, the default is off.<br>
|
||||
<br>
|
||||
To run statistic, in a shell in the folder which statistic is in type:<br>
|
||||
> python statistic.py<br>
|
||||
<br>
|
||||
An explanation of the gcodes is at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter">http://reprap.org/bin/view/Main/Arduino_GCode_Interpreter</a><br>
|
||||
<br>
|
||||
and at:<br>
|
||||
<a href="http://reprap.org/bin/view/Main/MCodeReference">http://reprap.org/bin/view/Main/MCodeReference</a><br>
|
||||
<br>
|
||||
A gode example is at:<br>
|
||||
<a href="http://forums.reprap.org/file.php?12,file=565">http://forums.reprap.org/file.php?12,file=565</a><br>
|
||||
<br>
|
||||
This example generates statistics the gcode file Screw Holder_comb.gcode. This example is run in a terminal in the folder which contains<br>
|
||||
Screw Holder_comb.gcode and statistic.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import statistic<br>
|
||||
>>> statistic.<a href="#-main">main</a>()<br>
|
||||
This brings up the statistic dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> statistic.<a href="#-statisticFile">statisticFile</a>()<br>
|
||||
The statistics file is saved as Screw Holder_comb_statistic.gcode</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.statistic.html#StatisticPreferences">StatisticPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.statistic.html#StatisticSkein">StatisticSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="StatisticPreferences">class <strong>StatisticPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the statistics preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="StatisticPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Write button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="StatisticSkein">class <strong>StatisticSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to get statistics for a gcode skein.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="StatisticSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-addToPath"><strong>addToPath</strong></a>(self, location)</dt><dd><tt>Add a point to travel and maybe extrusion.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-extruderSet"><strong>extruderSet</strong></a>(self, active)</dt><dd><tt>Maybe increment the number of times the extruder was toggled.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-getLocationSetFeedrateToSplitLine"><strong>getLocationSetFeedrateToSplitLine</strong></a>(self, splitLine)</dt></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-helicalMove"><strong>helicalMove</strong></a>(self, isCounterclockwise, splitLine)</dt><dd><tt>Get statistics for a helical move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Get statistics for a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText)</dt><dd><tt>Parse gcode text and store the statistics.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StatisticSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the statistics.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getStatisticGcode"><strong>getStatisticGcode</strong></a>(gcodeText)</dt><dd><tt>Get statistics for a gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the statistics dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-statisticFile"><strong>statisticFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Write statistics for a gcode file. If no fileName is specified, write statistics for the first gcode file in this folder that is not modified.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write statistics for a skeinforge gcode file, if 'Write Statistics File for Skeinforge Chain' is selected.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeStatisticFileGivenText"><strong>writeStatisticFileGivenText</strong></a>(fileName, gcodeText, statisticPreferences)</dt><dd><tt>Write statistics for a gcode file.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,192 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.analyze_plugins.vectorwrite</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.analyze_plugins.html"><font color="#ffffff">analyze_plugins</font></a>.vectorwrite</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/vectorwrite.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/vectorwrite.py</a></font></td></tr></table>
|
||||
<p><tt>Vectorwrite is a script to write Scalable Vector Graphics for a gcode file.<br>
|
||||
<br>
|
||||
The default 'Activate Vectorwrite' checkbox is on. When it is on, the functions described below will work when called from the<br>
|
||||
skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether<br>
|
||||
or not the 'Activate Vectorwrite' checkbox is on, when vectorwrite is run directly.<br>
|
||||
<br>
|
||||
The 'Pixels over Extrusion Width' preference is the scale of the graphic in pixels per extrusion width. If the number of layers is<br>
|
||||
equal or greater to the 'Minimum Number of Layers for Multiple Files' preference, then vectorwrite will write a directory with a<br>
|
||||
file for each layer, rather than just a single large scalable vector graphic.<br>
|
||||
<br>
|
||||
To run vectorwrite, in a shell in the folder which vectorwrite is in type:<br>
|
||||
> python vectorwrite.py<br>
|
||||
<br>
|
||||
The Scalable Vector Graphics file can be opened by an SVG viewer or an SVG capable browser like Mozilla:<br>
|
||||
<a href="http://www.mozilla.com/firefox/">http://www.mozilla.com/firefox/</a><br>
|
||||
<br>
|
||||
This example writes vector graphics for the gcode file Screw Holder.gcode. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder.gcode and vectorwrite.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import vectorwrite<br>
|
||||
>>> vectorwrite.<a href="#-main">main</a>()<br>
|
||||
This brings up the vectorwrite dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> vectorwrite.vectorwriteFile()<br>
|
||||
The vector file is saved as Screw Holder.svg</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="math.html">math</a><br>
|
||||
<a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.vectorwrite.html#VectorWindow">VectorWindow</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.vectorwrite.html#VectorwritePreferences">VectorwritePreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.analyze_plugins.vectorwrite.html#VectorwriteSkein">VectorwriteSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="VectorWindow">class <strong>VectorWindow</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to accumulate a scalable vector graphics text.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="VectorWindow-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#VectorWindow">VectorWindow</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-addColoredLine"><strong>addColoredLine</strong></a>(self, pointFirst, pointSecond, colorName)</dt><dd><tt>Add a colored line to the text.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-addFontHeight"><strong>addFontHeight</strong></a>(self, fontSize)</dt><dd><tt>Add quadruple the font size to the height.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line to the text and a newline.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-addPane"><strong>addPane</strong></a>(self)</dt><dd><tt>Add a new window pane for drawing lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-addText"><strong>addText</strong></a>(self, fontSize, line)</dt><dd><tt>Add a colored line to the text.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-getHeightWidthString"><strong>getHeightWidthString</strong></a>(self)</dt><dd><tt>Get the height and width string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-getVectorFormattedText"><strong>getVectorFormattedText</strong></a>(self)</dt><dd><tt>Get the text in scalable vector graphics format.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorWindow-setPaneCorners"><strong>setPaneCorners</strong></a>(self, bottomLeftCorner, topRightCorner)</dt><dd><tt>Set the corners for the window pane.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="VectorwritePreferences">class <strong>VectorwritePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the vectorwrite preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="VectorwritePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="VectorwriteSkein">class <strong>VectorwriteSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to write a get a scalable vector graphics text for a gcode skein.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="VectorwriteSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-addToPath"><strong>addToPath</strong></a>(self, location, nextLine)</dt><dd><tt>Add a point to travel and maybe extrusion.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-addVectorWindow"><strong>addVectorWindow</strong></a>(self)</dt><dd><tt>Add a new vector window to vector windows.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Write button has been clicked.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-getFilenameWriteFiles"><strong>getFilenameWriteFiles</strong></a>(self, fileName)</dt><dd><tt>Write one or multiple files for the fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-getHypertextLinkBasename"><strong>getHypertextLinkBasename</strong></a>(self, baseUnderscoredPrefix, vectorWindowIndex)</dt><dd><tt>Get hypertext link basename for a numbered vector window.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-getLinkBasename"><strong>getLinkBasename</strong></a>(self, baseUnderscoredPrefix, vectorWindowIndex)</dt><dd><tt>Get link basename for a numbered vector window.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-getSuffixFilename"><strong>getSuffixFilename</strong></a>(self, baseUnderscoredPrefix, multipleDirectoryName, vectorWindowIndex)</dt><dd><tt>Get suffix fileName for a numbered vector window.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-initializeActiveLocation"><strong>initializeActiveLocation</strong></a>(self)</dt><dd><tt>Set variables to default.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-linearCorner"><strong>linearCorner</strong></a>(self, splitLine)</dt><dd><tt>Update the bounding corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine, nextLine)</dt><dd><tt>Get statistics for a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-parseCorner"><strong>parseCorner</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and use the location to update the bounding corners.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, vectorwritePreferences)</dt><dd><tt>Parse gcode text and store the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-parseLine"><strong>parseLine</strong></a>(self, line, nextLine)</dt><dd><tt>Parse a gcode line and add it to the vector output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-writeIndexText"><strong>writeIndexText</strong></a>(self, baseUnderscoredPrefix, indexFilename, indexName, multipleDirectoryName, suffixFilenames)</dt><dd><tt>Write the text for the index page.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="VectorwriteSkein-writeVectorWindowText"><strong>writeVectorWindowText</strong></a>(self, baseUnderscoredPrefix, multipleDirectoryName, suffixFilenames, vectorWindowIndex)</dt><dd><tt>Write the text for a vector window page.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the vectorwrite dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write scalable vector graphics for a skeinforge gcode file, if 'Write Scalable Vector Graphics for Skeinforge Chain' is selected.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeVectorFile"><strong>writeVectorFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Write scalable vector graphics for a gcode file. If no fileName is specified, write scalable vector graphics for the first gcode file in this folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeVectorFileGivenText"><strong>writeVectorFileGivenText</strong></a>(fileName, gcodeText, vectorwritePreferences)</dt><dd><tt>Write scalable vector graphics for a gcode file.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,187 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.carve</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.carve</strong></big></big> ($Date: 2008/02/05 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/carve.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/carve.py</a></font></td></tr></table>
|
||||
<p><tt>Carve shape is a script to carve a list of slice layers.<br>
|
||||
<br>
|
||||
Carve carves a list of slices into svg slice layers. The 'Layer Thickness' is the thickness the extrusion layer at default extruder speed,<br>
|
||||
this is the most important carve preference. The 'Extrusion Width over Thickness' is the ratio of the extrusion width over the layer<br>
|
||||
thickness, the default is 1.5. A ratio of one means the extrusion is a circle, a typical ratio of 1.5 means the extrusion is a wide oval.<br>
|
||||
These values should be measured from a test extrusion line.<br>
|
||||
<br>
|
||||
Rarely changed preferences are 'Import Coarseness', 'Mesh Type', 'Infill Bridge Width Over Thickness', 'Infill in Direction of Bridges' &<br>
|
||||
'Layer Thickness over Precision'. When a triangle mesh has holes in it, the triangle mesh slicer switches over to a slow algorithm that<br>
|
||||
spans gaps in the mesh. The higher the import coarseness, the wider the gaps in the mesh it will span. An import coarseness of one<br>
|
||||
means it will span gaps the width of the extrusion. When the Mesh Type preference is Correct Mesh, the mesh will be accurately<br>
|
||||
carved, and if a hole is found, carve will switch over to the algorithm that spans gaps. If the Mesh Type preference is Unproven<br>
|
||||
Mesh, carve will use the gap spanning algorithm from the start. The problem with the gap spanning algothm is that it will span gaps,<br>
|
||||
even if there actually is a gap in the model. Infill bridge width over thickness ratio is the ratio of the extrusion width over the layer<br>
|
||||
thickness on a bridge layer. If the infill in direction of bridges preference is chosen, the infill will be in the direction of bridges across<br>
|
||||
gaps, so that the fill will be able to span a bridge easier. The 'Layer Thickness over Precision' is the ratio of the layer thickness over<br>
|
||||
the smallest change in value. The higher the layer thickness over precision, the more significant figures the output numbers will have,<br>
|
||||
the default is ten.<br>
|
||||
<br>
|
||||
To run carve, in a shell type:<br>
|
||||
> python carve.py<br>
|
||||
<br>
|
||||
The following examples carve the GNU Triangulated Surface file Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.stl and carve.py. The preferences can be set in the dialog or by changing the preferences file<br>
|
||||
'carve.csv' with a text editor or a spreadsheet program set to separate tabs.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python carve.py<br>
|
||||
This brings up the dialog, after clicking 'Carve', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being carved.<br>
|
||||
The carved file is saved as Screw Holder Bottom_carve.svg<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import carve<br>
|
||||
>>> carve.<a href="#-main">main</a>()<br>
|
||||
File Screw Holder Bottom.stl is being carved.<br>
|
||||
The carved file is saved as Screw Holder Bottom_carve.svg<br>
|
||||
It took 3 seconds to carve the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> carve.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
File Screw Holder Bottom.gcode is being carved.<br>
|
||||
The carved file is saved as Screw Holder Bottom_carve.svg<br>
|
||||
It took 3 seconds to carve the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> carve.<a href="#-getCarveGcode">getCarveGcode</a>("<br>
|
||||
54 162 108 Number of Vertices,Number of Edges,Number of Faces<br>
|
||||
-5.800000000000001 5.341893939393939 4.017841892579603 Vertex Coordinates XYZ<br>
|
||||
5.800000000000001 5.341893939393939 4.017841892579603<br>
|
||||
..<br>
|
||||
many lines of GNU Triangulated Surface vertices, edges and faces<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="math.html">math</a><br>
|
||||
<a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html">skeinforge_tools.skeinforge_utilities.triangle_mesh</a><br>
|
||||
<a href="webbrowser.html">webbrowser</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.carve.html#CarvePreferences">CarvePreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.carve.html#CarveSkein">CarveSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CarvePreferences">class <strong>CarvePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the carve preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CarvePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarvePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Carve button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CarveSkein">class <strong>CarveSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to carve a GNU Triangulated Surface.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CarveSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addInitializationToOutputSVG"><strong>addInitializationToOutputSVG</strong></a>(self)</dt><dd><tt>Add initialization gcode to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addLayerStart"><strong>addLayerStart</strong></a>(self, layerIndex, z)</dt><dd><tt>Add the start lines for the layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addLines"><strong>addLines</strong></a>(self, lines)</dt><dd><tt>Add lines of text to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addRotatedLoopLayerToOutput"><strong>addRotatedLoopLayerToOutput</strong></a>(self, layerIndex, rotatedBoundaryLayer)</dt><dd><tt>Add rotated boundary layer to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addRotatedLoopLayersToOutput"><strong>addRotatedLoopLayersToOutput</strong></a>(self, rotatedBoundaryLayers)</dt><dd><tt>Add rotated boundary layers to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-addShutdownToOutput"><strong>addShutdownToOutput</strong></a>(self)</dt><dd><tt>Add shutdown svg to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-getReplacedSVGTemplateLines"><strong>getReplacedSVGTemplateLines</strong></a>(self, fileName, rotatedBoundaryLayers)</dt><dd><tt>Get the lines of text from the svg_template.txt file.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-getRoundedComplexString"><strong>getRoundedComplexString</strong></a>(self, point)</dt><dd><tt>Get the rounded complex string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-getSVGLoopString"><strong>getSVGLoopString</strong></a>(self, loop)</dt><dd><tt>Get the svg loop string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-parseCarving"><strong>parseCarving</strong></a>(self, carvePreferences, carving, fileName)</dt><dd><tt>Parse gnu triangulated surface text and store the carved gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CarveSkein-setExtrusionDiameterWidth"><strong>setExtrusionDiameterWidth</strong></a>(self, carvePreferences)</dt><dd><tt>Set the extrusion diameter & width and the bridge thickness & width.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getCarveGcode"><strong>getCarveGcode</strong></a>(fileName, carvePreferences<font color="#909090">=None</font>)</dt><dd><tt>Carve a shape file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarving"><strong>getCarving</strong></a>(fileName)</dt><dd><tt>Get a carving for the file using an import plugin.</tt></dd></dl>
|
||||
<dl><dt><a name="-getParameterFromJavascript"><strong>getParameterFromJavascript</strong></a>(lines, parameterName, parameterValue)</dt><dd><tt>Get a paramater from lines of javascript.</tt></dd></dl>
|
||||
<dl><dt><a name="-getReplacedInQuotes"><strong>getReplacedInQuotes</strong></a>(original, replacement, text)</dt><dd><tt>Replace what follows in quotes after the word.</tt></dd></dl>
|
||||
<dl><dt><a name="-getReplacedTagString"><strong>getReplacedTagString</strong></a>(replacementTagString, tagID, text)</dt><dd><tt>Get text with the tag string replaced.</tt></dd></dl>
|
||||
<dl><dt><a name="-getReplacedWordAndInQuotes"><strong>getReplacedWordAndInQuotes</strong></a>(original, replacement, text)</dt><dd><tt>Replace the word in the text and replace what follows in quotes after the word.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the carve dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Carve a GNU Triangulated Surface file. If no fileName is specified, carve the first GNU Triangulated Surface file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/02/05 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,178 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.clip</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.clip</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/clip.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/clip.py</a></font></td></tr></table>
|
||||
<p><tt>Clip is a script to clip loop ends.<br>
|
||||
<br>
|
||||
The default 'Activate Clip' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
Clip clips the ends of loops to prevent bumps from forming. The "Clip Over Extrusion Width (ratio)" is the ratio of the amount<br>
|
||||
each end of the loop is clipped over the extrusion width. The total gap will therefore be twice the clip. If the ratio is too high<br>
|
||||
loops will have a gap, if the ratio is too low there will be a bulge at the loop ends. To run clip, in a shell type:<br>
|
||||
> python clip.py<br>
|
||||
<br>
|
||||
The following examples clip the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and clip.py. The clip function will clip if 'Activate Clip' is true,<br>
|
||||
which can be set in the dialog or by changing the preferences file 'clip.csv' in the '.skeinforge' folder in your home directory<br>
|
||||
with a text editor or a spreadsheet program set to separate tabs. The functions writeOutput and getClipChainGcode check<br>
|
||||
to see if the text has been clipped, if not they call getCombChainGcode in comb.py to comb the text; once they have the<br>
|
||||
combed text, then they clip.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python clip.py<br>
|
||||
This brings up the dialog, after clicking 'Clip', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain clipped.<br>
|
||||
The clipped file is saved as Screw Holder Bottom_clip.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python clip.py Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain clipped.<br>
|
||||
The clipped file is saved as Screw Holder Bottom_clip.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import clip<br>
|
||||
>>> clip.<a href="#-main">main</a>()<br>
|
||||
This brings up the clip dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> clip.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain clipped.<br>
|
||||
The clipped file is saved as Screw Holder Bottom_clip.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> clip.<a href="#-getClipGcode">getClipGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> clip.<a href="#-getClipChainGcode">getClipChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.comb.html">skeinforge_tools.comb</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top><a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.clip.html#ClipPreferences">ClipPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.clip.html#ClipSkein">ClipSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ClipPreferences">class <strong>ClipPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the clip preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ClipPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Clip button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ClipSkein">class <strong>ClipSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to clip a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ClipSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-addGcodeFromThreadZ"><strong>addGcodeFromThreadZ</strong></a>(self, thread, z)</dt><dd><tt>Add a gcode thread to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-addGcodeMovementZ"><strong>addGcodeMovementZ</strong></a>(self, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-addTailoredLoopPath"><strong>addTailoredLoopPath</strong></a>(self)</dt><dd><tt>Add a clipped and jittered loop path.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-isNextExtruderOn"><strong>isNextExtruderOn</strong></a>(self)</dt><dd><tt>Determine if there is an extruder on command before a move command.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Add to loop path if this is a loop or path.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, loopTailorPreferences)</dt><dd><tt>Parse gcode text and store the clip gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, loopTailorPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ClipSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the clip skein.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getClipChainGcode"><strong>getClipChainGcode</strong></a>(fileName, gcodeText, loopTailorPreferences<font color="#909090">=None</font>)</dt><dd><tt>Clip a gcode linear move text. Chain clip the gcode if it is not already clipped.</tt></dd></dl>
|
||||
<dl><dt><a name="-getClipGcode"><strong>getClipGcode</strong></a>(gcodeText, loopTailorPreferences<font color="#909090">=None</font>)</dt><dd><tt>Clip a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the clip dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Clip a gcode linear move file. Chain clip the gcode if it is not already clipped. If no fileName is specified, clip the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,211 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.comb</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.comb</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/comb.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/comb.py</a></font></td></tr></table>
|
||||
<p><tt>Comb is a script to comb the extrusion hair of a gcode file.<br>
|
||||
<br>
|
||||
The default 'Activate Comb' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
Comb bends the extruder travel paths around holes in the carve, to avoid stringers. It moves the extruder to the inside of outer<br>
|
||||
perimeters before turning the extruder on so any start up ooze will be inside the shape. It jitters the loop end position to a<br>
|
||||
different place on each layer to prevent the a ridge from forming. The 'Arrival Inset Follow Distance over Extrusion Width' is the<br>
|
||||
ratio of the amount before the start of the outer perimeter the extruder will be moved to. A high value means the extruder will<br>
|
||||
move way before the beginning of the perimeter and a low value means the extruder will be moved just before the beginning.<br>
|
||||
The "Jitter Over Extrusion Width (ratio)" is the ratio of the amount the loop ends will be jittered. A high value means the loops<br>
|
||||
will start all over the place and a low value means loops will start at roughly the same place on each layer. The 'Minimum<br>
|
||||
Perimeter Departure Distance over Extrusion Width' is the ratio of the minimum distance that the extruder will travel and loop<br>
|
||||
before leaving an outer perimeter. A high value means the extruder will loop many times before leaving, so that the ooze will<br>
|
||||
finish within the perimeter, a low value means the extruder will not loop and a stringer might be created from the outer<br>
|
||||
perimeter. To run comb, in a shell type:<br>
|
||||
> python comb.py<br>
|
||||
<br>
|
||||
The following examples comb the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the folder<br>
|
||||
which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and comb.py. The comb function will comb if 'Activate Comb' is true, which<br>
|
||||
can be set in the dialog or by changing the preferences file 'comb.csv' in the '.skeinforge' folder in your home directory with a text<br>
|
||||
editor or a spreadsheet program set to separate tabs. The functions writeOutput and getCombChainGcode check to see if the<br>
|
||||
text has been combed, if not they call getTowerChainGcode in tower.py to tower the text; once they have the towered text, then<br>
|
||||
they comb. Pictures of combing in action are available from the Metalab blog at:<br>
|
||||
<a href="http://reprap.soup.io/?search=combing">http://reprap.soup.io/?search=combing</a><br>
|
||||
<br>
|
||||
<br>
|
||||
> python comb.py<br>
|
||||
This brings up the dialog, after clicking 'Comb', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain combed.<br>
|
||||
The combed file is saved as Screw Holder Bottom_comb.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import comb<br>
|
||||
>>> comb.<a href="#-main">main</a>()<br>
|
||||
This brings up the comb dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> comb.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain combed.<br>
|
||||
The combed file is saved as Screw Holder Bottom_comb.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> comb.<a href="#-getCombGcode">getCombGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> comb.<a href="#-getCombChainGcode">getCombChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="math.html">math</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.tower.html">skeinforge_tools.tower</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.comb.html#CombPreferences">CombPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.comb.html#CombSkein">CombSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CombPreferences">class <strong>CombPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the comb preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CombPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Comb button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CombSkein">class <strong>CombSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to comb a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CombSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addGcodeFromThreadZ"><strong>addGcodeFromThreadZ</strong></a>(self, thread, z)</dt><dd><tt>Add a gcode thread to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addGcodeMovementZ"><strong>addGcodeMovementZ</strong></a>(self, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addGcodePathZ"><strong>addGcodePathZ</strong></a>(self, path, z)</dt><dd><tt>Add a gcode path, without modifying the extruder, to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addIfTravel"><strong>addIfTravel</strong></a>(self, splitLine)</dt><dd><tt>Add travel move around loops if the extruder is off.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addPathBeforeEnd"><strong>addPathBeforeEnd</strong></a>(self, aroundBetweenPath, location, loop)</dt><dd><tt>Add the path before the end of the loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addPathBetween"><strong>addPathBetween</strong></a>(self, aroundBetweenPath, betweenFirst, betweenSecond, isLeavingPerimeter, loopFirst)</dt><dd><tt>Add a path between the perimeter and the fill.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addTailoredLoopPath"><strong>addTailoredLoopPath</strong></a>(self)</dt><dd><tt>Add a clipped and jittered loop path.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-addToLoop"><strong>addToLoop</strong></a>(self, location)</dt><dd><tt>Add a location to loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-getAroundBetweenPath"><strong>getAroundBetweenPath</strong></a>(self, location)</dt><dd><tt>Insert paths around and between the perimeter and the fill.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-getBetweens"><strong>getBetweens</strong></a>(self)</dt><dd><tt>Set betweens for the layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-getJitteredLoop"><strong>getJitteredLoop</strong></a>(self, jitterDistance, jitterLoop)</dt><dd><tt>Get a jittered loop path.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-getOutloopLocation"><strong>getOutloopLocation</strong></a>(self, point)</dt><dd><tt>Get location outside of loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-getStartIndex"><strong>getStartIndex</strong></a>(self, xIntersections)</dt><dd><tt>Get the start index of the intersections.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-initializeMoreParameters"><strong>initializeMoreParameters</strong></a>(self)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-insertPathsBetween"><strong>insertPathsBetween</strong></a>(self, aroundBetweenPath, nextBeginning, pathEnd)</dt><dd><tt>Insert paths between the perimeter and the fill.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-isNextExtruderOn"><strong>isNextExtruderOn</strong></a>(self)</dt><dd><tt>Determine if there is an extruder on command before a move command.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Add to loop path if this is a loop or path.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-parseAddJitter"><strong>parseAddJitter</strong></a>(self, line)</dt><dd><tt>Parse a gcode line, jitter it and add it to the comb skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-parseAddTravel"><strong>parseAddTravel</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the comb skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-parseGcode"><strong>parseGcode</strong></a>(self, combPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the comb gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, combPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CombSkein-parseLine"><strong>parseLine</strong></a>(self, combPreferences, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getCombChainGcode"><strong>getCombChainGcode</strong></a>(fileName, gcodeText, combPreferences<font color="#909090">=None</font>)</dt><dd><tt>Comb a gcode linear move text. Chain comb the gcode if it is not already combed.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCombGcode"><strong>getCombGcode</strong></a>(gcodeText, combPreferences<font color="#909090">=None</font>)</dt><dd><tt>Comb a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLoopNumberEqual"><strong>isLoopNumberEqual</strong></a>(betweenX, betweenXIndex, loopNumber)</dt><dd><tt>Determine if the loop number is equal.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the comb dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Comb a gcode linear move file. Chain comb the gcode if it is not already combed. If no fileName is specified, comb the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,183 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.cool</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.cool</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/cool.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/cool.py</a></font></td></tr></table>
|
||||
<p><tt>Cool is a script to cool the shape.<br>
|
||||
<br>
|
||||
The default 'Activate Cool' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
The important value for the cool preferences is "Minimum Layer Time (seconds)" which is the minimum amount of time the<br>
|
||||
extruder will spend on a layer. If it takes less time to extrude the layer than the minimum layer time, cool adds orbits with the<br>
|
||||
extruder off to give the layer time to cool, so that the next layer is not extruded on a molten base.<br>
|
||||
<br>
|
||||
If the 'Turn Fan On at Beginning' preference is true, cool will turn the fan on at the beginning of the fabrication. If the<br>
|
||||
'Turn Fan Off at Ending' preference is true, cool will turn the fan off at the ending of the fabrication.<br>
|
||||
<br>
|
||||
To run cool, in a shell which cool is in type:<br>
|
||||
> python cool.py<br>
|
||||
<br>
|
||||
The following examples cool the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and cool.py. The cool function will cool if the 'Activate Cool'<br>
|
||||
checkbox is on. The functions writeOutput and getCoolChainGcode check to see if the text has been cooled, if not they<br>
|
||||
call the getClipChainGcode in clip.py to clip the text; once they have the clipped text, then they cool.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python cool.py<br>
|
||||
This brings up the dialog, after clicking 'Cool', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain cooled.<br>
|
||||
The extrusion fill density ratio is 0.853<br>
|
||||
The cooled file is saved as Screw Holder Bottom.gcode<br>
|
||||
The scalable vector graphics file is saved as Hollow_Square_cool.svg<br>
|
||||
It took 34 seconds to cool the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python cool.py Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain cooled.<br>
|
||||
The extrusion fill density ratio is 0.853<br>
|
||||
The cooled file is saved as Screw Holder Bottom.gcode<br>
|
||||
The scalable vector graphics file is saved as Hollow_Square_cool.svg<br>
|
||||
It took 34 seconds to cool the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import cool<br>
|
||||
>>> cool.<a href="#-main">main</a>()<br>
|
||||
This brings up the cool dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> cool.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
File Screw Holder Bottom.stl is being chain cooled.<br>
|
||||
The extrusion fill density ratio is 0.853<br>
|
||||
The cooled file is saved as Screw Holder Bottom.gcode<br>
|
||||
The scalable vector graphics file is saved as Hollow_Square_cool.svg<br>
|
||||
It took 34 seconds to cool the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> cool.<a href="#-getCoolGcode">getCoolGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> cool.<a href="#-getCoolChainGcode">getCoolChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.clip.html">skeinforge_tools.clip</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top><a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.cool.html#CoolPreferences">CoolPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.cool.html#CoolSkein">CoolSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CoolPreferences">class <strong>CoolPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the cool preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CoolPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Cool button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CoolSkein">class <strong>CoolSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to cool a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CoolSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-addGcodeFromFeedrateMovementZ"><strong>addGcodeFromFeedrateMovementZ</strong></a>(self, feedrateMinute, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Add line to time spent on layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, coolPreferences)</dt><dd><tt>Parse gcode text and store the cool gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, coolPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CoolSkein-parseLine"><strong>parseLine</strong></a>(self, coolPreferences, line)</dt><dd><tt>Parse a gcode line and add it to the cool skein.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getCoolChainGcode"><strong>getCoolChainGcode</strong></a>(fileName, gcodeText, coolPreferences<font color="#909090">=None</font>)</dt><dd><tt>Cool a gcode linear move text. Chain cool the gcode if it is not already cooled.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCoolGcode"><strong>getCoolGcode</strong></a>(gcodeText, coolPreferences<font color="#909090">=None</font>)</dt><dd><tt>Cool a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the cool dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Cool a gcode linear move file. Chain cool the gcode if it is not already cooled. If no fileName is specified, cool the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,157 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.export</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.export</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export.py</a></font></td></tr></table>
|
||||
<p><tt>Export is a script to pick an export plugin and optionally print the output to a file.<br>
|
||||
<br>
|
||||
The default 'Activate Export' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
Export presents the user with a choice of the export plugins in the export_plugins folder. The chosen plugin will then modify the<br>
|
||||
gcode or translate it into another format. There is also the "Do Not Change Output" choice, which will not change the output.<br>
|
||||
<br>
|
||||
To print the output to a file, add the file output name to the "Also Send Output To" field. A common choice is sys.stdout to print<br>
|
||||
the output in the shell screen. Another common choice is sys.stderr. The default is nothing, in which case the output will not be<br>
|
||||
printed to a file. The 'File Extension' field determines the file extension added to the name of the output file, the default is gcode.<br>
|
||||
<br>
|
||||
If the "Delete M110 Gcode Line" checkbox is true, export will delete the M110 gcode line, whose only purpose is to indicate that<br>
|
||||
the gcode is generated by skeinforge. If the "Delete Comments" checkbox is true, export will delete the comments. The M110<br>
|
||||
gcode and the comments are not necessary to run a fabricator.<br>
|
||||
<br>
|
||||
When export is exporting the code, if there is a file replace.csv, it will replace the word in the first column be its replacement in<br>
|
||||
the second column. There is an example file replace_example.csv to demonstrate the comma separated format, which can be<br>
|
||||
edited in a text editor or a spreadsheet.<br>
|
||||
<br>
|
||||
An export plugin is a script in the export_plugins folder which has the functions getOuput and writeOutput.<br>
|
||||
<br>
|
||||
To run export, in a shell type:<br>
|
||||
> python export.py<br>
|
||||
<br>
|
||||
The following examples export the files Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains<br>
|
||||
Screw Holder Bottom.stl & export.py. The function writeOutput checks to see if the text has been exported, if not they call<br>
|
||||
getUnpauseChainGcode in unpause.py to unpause the text; once they have the unpaused text, then it exports.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python export.py<br>
|
||||
This brings up the dialog, after clicking 'Export', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain exported.<br>
|
||||
The exported file is saved as Screw Holder Bottom_export.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import export<br>
|
||||
>>> export.<a href="#-main">main</a>()<br>
|
||||
This brings up the export dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> export.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain exported.<br>
|
||||
The exported file is saved as Screw Holder Bottom_export.gcode</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.unpause.html">skeinforge_tools.unpause</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.export.html#ExportPreferences">ExportPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.export.html#ExportSkein">ExportSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ExportPreferences">class <strong>ExportPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the export preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ExportPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ExportPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Export button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ExportSkein">class <strong>ExportSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to export a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ExportSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="ExportSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ExportSkein-getLineWithTruncatedNumber"><strong>getLineWithTruncatedNumber</strong></a>(self, character, line)</dt><dd><tt>Get a line with the number after the character truncated.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ExportSkein-parseGcode"><strong>parseGcode</strong></a>(self, exportPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the export gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ExportSkein-parseLine"><strong>parseLine</strong></a>(self, exportPreferences, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getExportGcode"><strong>getExportGcode</strong></a>(gcodeText, exportPreferences<font color="#909090">=None</font>)</dt><dd><tt>Export a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getReplaced"><strong>getReplaced</strong></a>(exportText)</dt><dd><tt>Get text with words replaced according to replace.csv file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSelectedPlugin"><strong>getSelectedPlugin</strong></a>(exportPreferences)</dt><dd><tt>Get the selected plugin module.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the export dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Export a gcode linear move file. Chain export the gcode if it is not already exported.<br>
|
||||
If no fileName is specified, export the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,162 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.export_plugins.binary_16_byte</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.export_plugins.html"><font color="#ffffff">export_plugins</font></a>.binary_16_byte</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/binary_16_byte.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/binary_16_byte.py</a></font></td></tr></table>
|
||||
<p><tt>Binary 16 byte is an export plugin to convert gcode into 16 byte binary segments.<br>
|
||||
<br>
|
||||
An export plugin is a script in the export_plugins folder which has the functions getOuput, isArchivable and writeOutput. It is<br>
|
||||
meant to be run from the export tool. To ensure that the plugin works on platforms which do not handle file capitalization<br>
|
||||
properly, give the plugin a lower case name.<br>
|
||||
<br>
|
||||
The getOutput function of this script takes a gcode text and returns that text converted into 16 byte segments. The writeOutput<br>
|
||||
function of this script takes a gcode text and writes that in a binary format converted into 16 byte segments.<br>
|
||||
<br>
|
||||
Many of the functions in this script are copied from gcodec in skeinforge_utilities. They are copied rather than imported so<br>
|
||||
developers making new plugins do not have to learn about gcodec, the code here is all they need to learn.<br>
|
||||
<br>
|
||||
This plugin is just a starter to make a real binary converter.<br>
|
||||
<br>
|
||||
//Record structure<br>
|
||||
BinArray(0) = AscW(Inst_Code_Letter)<br>
|
||||
BinArray(1) = cInst_Code<br>
|
||||
<br>
|
||||
X Data<br>
|
||||
sInt32_to_Hbytes(iXdim_1)<br>
|
||||
BinArray(2) = lsb 'short lsb<br>
|
||||
BinArray(3) = msb 'short msb<br>
|
||||
<br>
|
||||
Y Data<br>
|
||||
sInt32_to_Hbytes(iYdim_2)<br>
|
||||
BinArray(4) = lsb 'short lsb<br>
|
||||
BinArray(5) = msb 'short msb<br>
|
||||
<br>
|
||||
Z Data<br>
|
||||
sInt32_to_Hbytes(iZdim_3)<br>
|
||||
BinArray(6) = lsb 'short lsb<br>
|
||||
BinArray(7) = msb 'short msb<br>
|
||||
<br>
|
||||
I Data<br>
|
||||
sInt32_to_Hbytes(iIdim_4)<br>
|
||||
BinArray(8) = lsb 'short lsb<br>
|
||||
BinArray(9) = msb 'short msb<br>
|
||||
<br>
|
||||
J Data<br>
|
||||
sInt32_to_Hbytes(iJdim_5)<br>
|
||||
BinArray(10) = lsb 'short lsb<br>
|
||||
BinArray(11) = msb 'short msb<br>
|
||||
<br>
|
||||
BinArray(12) = FP_Char<br>
|
||||
sInt32_to_Hbytes(iFP_Num)<br>
|
||||
BinArray(13) = lsb 'short lsb<br>
|
||||
<br>
|
||||
BinArray(14) = bActiveFlags<br>
|
||||
<br>
|
||||
BinArray(15) = AscW("#")End of record filler<br>
|
||||
<br>
|
||||
Byte 14 is worth a few extra notes, this byte is used to define which of the axes are active, its used to get round the problem of say a<br>
|
||||
line of code with no mention of z. This would be put into the file as z = 0 as the space for this data is reserved, if we did nothing, this<br>
|
||||
would instruct the machine to go to z = 0. If we use the active flag to define the z axis as inactive the z = 0 is ignored and the value<br>
|
||||
set to the last saved value of z, i.e it does not move. If the z data is actually set to z = 0 then the axis would be set to active and<br>
|
||||
the move takes place.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.export_plugins.binary_16_byte.html#Binary16BytePreferences">Binary16BytePreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.export_plugins.binary_16_byte.html#Binary16ByteSkein">Binary16ByteSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Binary16BytePreferences">class <strong>Binary16BytePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the export preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Binary16BytePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Binary16BytePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Convert to binary 16 byte button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Binary16ByteSkein">class <strong>Binary16ByteSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to convert gcode into 16 byte binary segments.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Binary16ByteSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Binary16ByteSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, binary16BytePreferences)</dt><dd><tt>Parse gcode text and store the gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Binary16ByteSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getIntegerFlagFromCharacterSplitLine"><strong>getIntegerFlagFromCharacterSplitLine</strong></a>(character, splitLine)</dt><dd><tt>Get the integer flag after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getIntegerFromCharacterLengthLineOffset"><strong>getIntegerFromCharacterLengthLineOffset</strong></a>(character, offset, splitLine, stepLength)</dt><dd><tt>Get the integer after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getOutput"><strong>getOutput</strong></a>(gcodeText, binary16BytePreferences<font color="#909090">=None</font>)</dt><dd><tt>Get the exported version of a gcode file. This function, isArchivable and writeOutput are the only necessary functions in a skeinforge export plugin.<br>
|
||||
If this plugin writes an output than should not be printed, an empty string should be returned.</tt></dd></dl>
|
||||
<dl><dt><a name="-getStringFromCharacterSplitLine"><strong>getStringFromCharacterSplitLine</strong></a>(character, splitLine)</dt><dd><tt>Get the string after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSummarizedFilename"><strong>getSummarizedFilename</strong></a>(fileName)</dt><dd><tt>Get the fileName basename if the file is in the current working directory, otherwise return the original full name.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt>Get the all the lines of text of a text.</tt></dd></dl>
|
||||
<dl><dt><a name="-indexOfStartingWithSecond"><strong>indexOfStartingWithSecond</strong></a>(letter, splitLine)</dt><dd><tt>Get index of the first occurence of the given letter in the split line, starting with the second word. Return - 1 if letter is not found</tt></dd></dl>
|
||||
<dl><dt><a name="-isArchivable"><strong>isArchivable</strong></a>()</dt><dd><tt>Return whether or not this plugin is archivable.</tt></dd></dl>
|
||||
<dl><dt><a name="-isReplacable"><strong>isReplacable</strong></a>()</dt><dd><tt>Return whether or not the output from this plugin is replacable. This should be true if the output is text and false if it is binary.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the export dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeFileText"><strong>writeFileText</strong></a>(fileName, fileText)</dt><dd><tt>Write a text to a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write the exported version of a gcode file. This function, getOutput and isArchivable are the only necessary functions in a skeinforge export plugin.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.export_plugins.gcode_small</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.export_plugins.html"><font color="#ffffff">export_plugins</font></a>.gcode_small</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/gcode_small.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/gcode_small.py</a></font></td></tr></table>
|
||||
<p><tt>Gcode_small is an export plugin to remove the comments and the redundant z and feedrate parameters from a gcode file.<br>
|
||||
<br>
|
||||
An export plugin is a script in the export_plugins folder which has the functions getOuput, isArchivable and writeOutput. It is<br>
|
||||
meant to be run from the export tool. To ensure that the plugin works on platforms which do not handle file capitalization<br>
|
||||
properly, give the plugin a lower case name.<br>
|
||||
<br>
|
||||
The getOuput function of this script takes a gcode text and returns that text without comments and redundant z and feedrate<br>
|
||||
parameters. The writeOutput function of this script takes a gcode text and writes that text without comments and redundant z<br>
|
||||
and feedrate parameterscomments to a file.<br>
|
||||
<br>
|
||||
Many of the functions in this script are copied from gcodec in skeinforge_utilities. They are copied rather than imported so<br>
|
||||
developers making new plugins do not have to learn about gcodec, the code here is all they need to learn.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.export_plugins.gcode_small.html#GcodeSmallSkein">GcodeSmallSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="GcodeSmallSkein">class <strong>GcodeSmallSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to remove redundant z and feedrate parameters from a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="GcodeSmallSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="GcodeSmallSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText)</dt><dd><tt>Parse gcode text and store the gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="GcodeSmallSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getOutput"><strong>getOutput</strong></a>(gcodeText)</dt><dd><tt>Get the exported version of a gcode file. This function, isArchivable and writeOutput are the only necessary functions in a skeinforge export plugin.<br>
|
||||
If this plugin writes an output than should not be printed, an empty string should be returned.</tt></dd></dl>
|
||||
<dl><dt><a name="-getStringFromCharacterSplitLine"><strong>getStringFromCharacterSplitLine</strong></a>(character, splitLine)</dt><dd><tt>Get the string after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSummarizedFilename"><strong>getSummarizedFilename</strong></a>(fileName)</dt><dd><tt>Get the fileName basename if the file is in the current working directory, otherwise return the original full name.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt>Get the all the lines of text of a text.</tt></dd></dl>
|
||||
<dl><dt><a name="-indexOfStartingWithSecond"><strong>indexOfStartingWithSecond</strong></a>(letter, splitLine)</dt><dd><tt>Get index of the first occurence of the given letter in the split line, starting with the second word. Return - 1 if letter is not found</tt></dd></dl>
|
||||
<dl><dt><a name="-isArchivable"><strong>isArchivable</strong></a>()</dt><dd><tt>Return whether or not this plugin is archivable.</tt></dd></dl>
|
||||
<dl><dt><a name="-isReplacable"><strong>isReplacable</strong></a>()</dt><dd><tt>Return whether or not the output from this plugin is replacable. This should be true if the output is text and false if it is binary.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,130 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.export_plugins.gcode_step</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.export_plugins.html"><font color="#ffffff">export_plugins</font></a>.gcode_step</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/gcode_step.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/gcode_step.py</a></font></td></tr></table>
|
||||
<p><tt>Gcode step is an export plugin to convert gcode from float position to number of steps.<br>
|
||||
<br>
|
||||
An export plugin is a script in the export_plugins folder which has the functions getOuput, isArchivable and writeOutput. It is<br>
|
||||
meant to be run from the export tool. To ensure that the plugin works on platforms which do not handle file capitalization<br>
|
||||
properly, give the plugin a lower case name.<br>
|
||||
<br>
|
||||
If the "Add Feedrate Even When Unchanging" checkbox is true, the feedrate will be added even when it did not change<br>
|
||||
from the previous line. If the "Add Space Between Words" checkbox is true, a space will be added between each gcode<br>
|
||||
word. If the "Add Z Even When Unchanging" checkbox is true, the z word will be added even when it did not change. The<br>
|
||||
defaults for these checkboxes are all true. <br>
|
||||
<br>
|
||||
The "Feedrate Step Length" is the length of one feedrate increment. The "Radius Step Length" is the length of one radius<br>
|
||||
increment. The "X Step Length" is the length of one x step. The "Y Step Length" is the length of one y step. The "Z Step<br>
|
||||
Length" is the length of one z step.<br>
|
||||
<br>
|
||||
The "X Offset " is the distance the x word in a gcode line will be offset. The "Y Offset " is the distance the y word will be<br>
|
||||
offset. The "Z Offset " is the distance the z word will be offset.<br>
|
||||
<br>
|
||||
The getOutput function of this script takes a gcode text and returns it with the positions converted into number of steps.<br>
|
||||
The writeOutput function of this script takes a gcode text and writes that with the positions converted into number of steps.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.export_plugins.gcode_step.html#GcodeStepPreferences">GcodeStepPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.export_plugins.gcode_step.html#GcodeStepSkein">GcodeStepSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="GcodeStepPreferences">class <strong>GcodeStepPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the export preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="GcodeStepPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="GcodeStepPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Convert to gcode step button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="GcodeStepSkein">class <strong>GcodeStepSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to convert gcode into 16 byte binary segments.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="GcodeStepSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="GcodeStepSkein-addCharacterInteger"><strong>addCharacterInteger</strong></a>(self, character, lineStringIO, offset, splitLine, stepLength)</dt><dd><tt>Add a character and integer to line string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="GcodeStepSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="GcodeStepSkein-addStringToLine"><strong>addStringToLine</strong></a>(self, lineStringIO, wordString)</dt><dd><tt>Add a character and integer to line string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="GcodeStepSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeStepPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="GcodeStepSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getCharacterIntegerString"><strong>getCharacterIntegerString</strong></a>(character, offset, splitLine, stepLength)</dt><dd><tt>Get a character and integer string.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFloatFromCharacterSplitLine"><strong>getFloatFromCharacterSplitLine</strong></a>(character, splitLine)</dt><dd><tt>Get the float after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getOutput"><strong>getOutput</strong></a>(gcodeText, gcodeStepPreferences<font color="#909090">=None</font>)</dt><dd><tt>Get the exported version of a gcode file. This function, isArchivable and writeOutput are the only necessary functions in a skeinforge export plugin.<br>
|
||||
If this plugin writes an output than should not be printed, an empty string should be returned.</tt></dd></dl>
|
||||
<dl><dt><a name="-getStringFromCharacterSplitLine"><strong>getStringFromCharacterSplitLine</strong></a>(character, splitLine)</dt><dd><tt>Get the string after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSummarizedFilename"><strong>getSummarizedFilename</strong></a>(fileName)</dt><dd><tt>Get the fileName basename if the file is in the current working directory, otherwise return the original full name.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt>Get the all the lines of text of a text.</tt></dd></dl>
|
||||
<dl><dt><a name="-indexOfStartingWithSecond"><strong>indexOfStartingWithSecond</strong></a>(letter, splitLine)</dt><dd><tt>Get index of the first occurence of the given letter in the split line, starting with the second word. Return - 1 if letter is not found</tt></dd></dl>
|
||||
<dl><dt><a name="-isArchivable"><strong>isArchivable</strong></a>()</dt><dd><tt>Return whether or not this plugin is archivable.</tt></dd></dl>
|
||||
<dl><dt><a name="-isReplacable"><strong>isReplacable</strong></a>()</dt><dd><tt>Return whether or not the output from this plugin is replacable. This should be true if the output is text and false if it is binary.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the export dialog.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: package skeinforge_tools.export_plugins</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.export_plugins</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/__init__.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/export_plugins/__init__.py</a></font></td></tr></table>
|
||||
<p><tt>#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="skeinforge_tools.export_plugins.binary_16_byte.html">binary_16_byte</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.export_plugins.gcode_small.html">gcode_small</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.export_plugins.gcode_step.html">gcode_step</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>level</strong> = 2<br>
|
||||
<strong>numberOfLevelsDeepInPackageHierarchy</strong> = 2<br>
|
||||
<strong>packageFilePath</strong> = '/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap'</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,286 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.fill</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.fill</strong></big></big> ($Date: 2008/28/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/fill.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/fill.py</a></font></td></tr></table>
|
||||
<p><tt>Fill is a script to fill the carves of a gcode file.<br>
|
||||
<br>
|
||||
The diaphragm is a solid group of layers, at regular intervals. It can be used with a sparse infill to give the object watertight, horizontal<br>
|
||||
compartments and/or a higher shear strength. The "Diaphragm Period" is the number of layers between diaphrams. The "Diaphragm<br>
|
||||
Thickness" is the number of layers the diaphram is composed of. The default diaphragm is zero, because the diaphragm feature is rarely<br>
|
||||
used.<br>
|
||||
<br>
|
||||
The "Extra Shells on Alternating Solid Layers" preference is the number of extra shells, which are interior perimeter loops, on the alternating<br>
|
||||
solid layers. The "Extra Shells on Base" preference is the number of extra shells on the bottom, base layer and every even solid layer after<br>
|
||||
that. Setting this to a different value than the "Extra Shells on Alternating Solid Layers" means the infill pattern will alternate, creating a<br>
|
||||
strong interleaved bond even if the perimeter loop shrinks. The "Extra Shells on Sparse Layer" preference is the number of extra shells on<br>
|
||||
the sparse layers. The solid layers are those at the top & bottom, and wherever the object has a plateau or overhang, the sparse layers are<br>
|
||||
the layers in between. Adding extra shells makes the object stronger & heavier.<br>
|
||||
<br>
|
||||
The "Grid Extra Overlap" preference is the amount of extra overlap added when extruding the grid to compensate for the fact that when the<br>
|
||||
first thread going through a grid point is extruded, since there is nothing there yet for it to connect to it will shrink extra. The "Grid Square<br>
|
||||
Half Width over Extrusion Width" preference is the ratio of the amount the grid square is increased in each direction over the extrusion<br>
|
||||
width, the default is zero. With a value of one or so the grid pattern will have large squares to go with the octogons. The "Infill Pattern"<br>
|
||||
can be set to "Grid" or "Line". The grid option makes a funky octogon square honeycomb like pattern which gives the object extra strength.<br>
|
||||
However, the grid pattern means extra turns for the extruder and therefore extra wear & tear, also it takes longer to generate, so the<br>
|
||||
default is line. The grid has extra diagonal lines, so when choosing the grid option, set the infill solidity to 0.2 or less so that there is not<br>
|
||||
too much plastic and the grid generation time, which increases with the fourth power of solidity, will be reasonable.<br>
|
||||
<br>
|
||||
The "Infill Begin Rotation" preference is the amount the infill direction of the base and every second layer thereafter is rotated. The default<br>
|
||||
value of forty five degrees gives a diagonal infill. The "Infill Odd Layer Extra Rotation" preference is the extra amount the infill direction of<br>
|
||||
the odd layers is rotated compared to the base layer. With the default value of ninety degrees the odd layer infill will be perpendicular to<br>
|
||||
the base layer. The "Infill Begin Rotation Repeat" preference is the number of layers that the infill begin rotation will repeat. With the<br>
|
||||
default of one, the object will have alternating cross hatching. With a value higher than one, the infill will go in one direction more often,<br>
|
||||
giving the object more strength in one direction and less in the other, this is useful for beams and cantilevers.<br>
|
||||
<br>
|
||||
The most important preference in fill is the "Infill Solidity". A value of one means the infill lines will be right beside each other, resulting in a<br>
|
||||
solid, strong, heavy shape which takes a long time to extrude. A low value means the infill will be sparse, the interior will be mosty empty<br>
|
||||
space, the object will be weak, light and quick to build. The default is 0.2.<br>
|
||||
<br>
|
||||
The "Interior Infill Density over Exterior Density" preference is the ratio of the infill density of the interior over the infill density of the exterior<br>
|
||||
surfaces, the default is 0.9. The exterior should have a high infill density, so that the surface will be strong and watertight. With the<br>
|
||||
interior infill density a bit lower than the exterior, the plastic will not fill up higher than the extruder nozzle. If the interior density is too high<br>
|
||||
that could happen, as Nophead described in the Hydraraptor "Bearing Fruit" post at:<br>
|
||||
<a href="http://hydraraptor.blogspot.com/2008/08/bearing-fruit.html">http://hydraraptor.blogspot.com/2008/08/bearing-fruit.html</a><br>
|
||||
<br>
|
||||
The "Solid Surface Thickness" preference is the number of solid layers that are at the bottom, top, plateaus and overhang. With a value of<br>
|
||||
zero, the entire object will be composed of a sparse infill, and water could flow right through it. With a value of one, water will leak slowly<br>
|
||||
through the surface and with a value of three, the object could be watertight. The higher the solid surface thickness, the stronger and<br>
|
||||
heavier the object will be. The default is three.<br>
|
||||
<br>
|
||||
The following examples fill the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and fill.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python fill.py<br>
|
||||
This brings up the dialog, after clicking 'Fill', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain filled.<br>
|
||||
The filled file is saved as Screw Holder Bottom_fill.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import fill<br>
|
||||
>>> fill.<a href="#-main">main</a>()<br>
|
||||
File Screw Holder Bottom.stl is being filled.<br>
|
||||
The filled file is saved as Screw Holder Bottom_fill.gcode<br>
|
||||
It took 3 seconds to fill the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fill.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
File Screw Holder Bottom.stl is being filled.<br>
|
||||
The filled file is saved as Screw Holder Bottom_fill.gcode<br>
|
||||
It took 3 seconds to fill the file.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.inset.html">skeinforge_tools.inset</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top><a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.fill.html#FillPreferences">FillPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.fill.html#FillSkein">FillSkein</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.fill.html#RotatedLayer">RotatedLayer</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.fill.html#YIntersectionPath">YIntersectionPath</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="FillPreferences">class <strong>FillPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the fill preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="FillPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Fill button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="FillSkein">class <strong>FillSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to fill a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="FillSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addFill"><strong>addFill</strong></a>(self, layerIndex)</dt><dd><tt>Add fill to the carve layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addGcodeFromThreadZ"><strong>addGcodeFromThreadZ</strong></a>(self, thread, z)</dt><dd><tt>Add a gcode thread to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addGcodeMovementZ"><strong>addGcodeMovementZ</strong></a>(self, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addGrid"><strong>addGrid</strong></a>(self, alreadyFilledArounds, arounds, fillLoops, gridPointInsetX, paths, pixelTable, width, reverseRotationAroundZAngle, rotatedExtruderLoops, surroundingCarves)</dt></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addGridLinePoints"><strong>addGridLinePoints</strong></a>(self, alreadyFilledArounds, begin, end, gridPoints, gridRotationAngle, offset, rotatedExtruderLoops, surroundingCarves, y)</dt><dd><tt>Add the segments of one line of a grid to the infill.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addRemainingGridPoints"><strong>addRemainingGridPoints</strong></a>(self, arounds, gridPointInsetX, gridPointInsetY, gridPoints, isBothOrNone, paths, pixelTable, width)</dt><dd><tt>Add the remaining grid points to the grid point list.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addRotatedCarve"><strong>addRotatedCarve</strong></a>(self, layerIndex, reverseRotationAroundZAngle, surroundingCarves)</dt><dd><tt>Add a rotated carve to the surrounding carves.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addShutdownToOutput"><strong>addShutdownToOutput</strong></a>(self)</dt><dd><tt>Add shutdown gcode to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-addToThread"><strong>addToThread</strong></a>(self, location)</dt><dd><tt>Add a location to thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-getAreaChange"><strong>getAreaChange</strong></a>(self, area, layerIndex)</dt><dd><tt>Get the difference between the area of the carve at the layer index and the given area.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-getCarveArea"><strong>getCarveArea</strong></a>(self, layerIndex)</dt><dd><tt>Get the area of the carve.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-getGridPoints"><strong>getGridPoints</strong></a>(self, alreadyFilledArounds, fillLoops, reverseRotationAroundZAngle, rotatedExtruderLoops, surroundingCarves)</dt><dd><tt>Add a grid to the infill.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-getLayerRoundZ"><strong>getLayerRoundZ</strong></a>(self, layerIndex)</dt><dd><tt>Get the plane angle around z that the layer is rotated by.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-getNextGripXStep"><strong>getNextGripXStep</strong></a>(self, gridXStep)</dt><dd><tt>Get the next grid x step, increment by an extra one every three if hexagonal grid is chosen.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-isPointInsideLineSegments"><strong>isPointInsideLineSegments</strong></a>(self, alreadyFilledArounds, gridPoint, rotatedExtruderLoops, surroundingCarves)</dt><dd><tt>Is the point inside the line segments of the loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Add a linear move to the thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-parseGcode"><strong>parseGcode</strong></a>(self, fillPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-parseLine"><strong>parseLine</strong></a>(self, lineIndex)</dt><dd><tt>Parse a gcode line and add it to the fill skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FillSkein-setGridVariables"><strong>setGridVariables</strong></a>(self, fillPreferences)</dt><dd><tt>Set the grid variables.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="RotatedLayer">class <strong>RotatedLayer</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A rotated layer.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="RotatedLayer-__init__"><strong>__init__</strong></a>(self, z)</dt></dl>
|
||||
|
||||
<dl><dt><a name="RotatedLayer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#RotatedLayer">RotatedLayer</a>.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="YIntersectionPath">class <strong>YIntersectionPath</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to hold the y intersection position, the loop which it intersected and the point index of the loop which it intersected.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="YIntersectionPath-__init__"><strong>__init__</strong></a>(self, pathIndex, pointIndex, y)</dt><dd><tt>Initialize from the path, point index, and y.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="YIntersectionPath-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this y intersection.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="YIntersectionPath-getPath"><strong>getPath</strong></a>(self, paths)</dt><dd><tt>Get the path from the paths and path index.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="YIntersectionPath-getPointIndexPlusOne"><strong>getPointIndexPlusOne</strong></a>(self)</dt><dd><tt>Get the point index plus one.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addAroundGridPoint"><strong>addAroundGridPoint</strong></a>(arounds, gridPoint, gridPointInsetX, gridPointInsetY, gridPoints, gridSearchRadius, isBothOrNone, isDoubleJunction, isJunctionWide, paths, pixelTable, width)</dt><dd><tt>Add the path around the grid point.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPath"><strong>addPath</strong></a>(extrusionWidth, fill, path, rotationPlaneAngle)</dt><dd><tt>Add simplified path to fill.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPointOnPath"><strong>addPointOnPath</strong></a>(path, pixelTable, point, pointIndex, width)</dt><dd><tt>Add a point to a path and the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addShortenedLineSegment"><strong>addShortenedLineSegment</strong></a>(lineSegment, shortenDistance, shortenedSegments)</dt><dd><tt>Add shortened line segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-addSparseEndpoints"><strong>addSparseEndpoints</strong></a>(doubleExtrusionWidth, endpoints, fillLine, horizontalSegments, infillSolidity, removedEndpoints, solidSurfaceThickness, surroundingXIntersections)</dt><dd><tt>Add sparse endpoints.</tt></dd></dl>
|
||||
<dl><dt><a name="-addSparseEndpointsFromSegment"><strong>addSparseEndpointsFromSegment</strong></a>(doubleExtrusionWidth, endpoints, fillLine, horizontalSegments, infillSolidity, removedEndpoints, segment, solidSurfaceThickness, surroundingXIntersections)</dt><dd><tt>Add sparse endpoints from a segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-addSurroundingXIntersectionIndexes"><strong>addSurroundingXIntersectionIndexes</strong></a>(surroundingCarves, xIntersectionIndexList, y)</dt><dd><tt>Add x intersection indexes from surrounding layers.</tt></dd></dl>
|
||||
<dl><dt><a name="-addYIntersectionPathToList"><strong>addYIntersectionPathToList</strong></a>(pathIndex, pointIndex, y, yIntersection, yIntersectionPaths)</dt><dd><tt>Add the y intersection path to the y intersection paths.</tt></dd></dl>
|
||||
<dl><dt><a name="-compareDistanceFromCenter"><strong>compareDistanceFromCenter</strong></a>(self, other)</dt><dd><tt>Get comparison in order to sort y intersections in ascending order of distance from the center.</tt></dd></dl>
|
||||
<dl><dt><a name="-comparePointIndexDescending"><strong>comparePointIndexDescending</strong></a>(self, other)</dt><dd><tt>Get comparison in order to sort y intersections in descending order of point index.</tt></dd></dl>
|
||||
<dl><dt><a name="-createExtraFillLoops"><strong>createExtraFillLoops</strong></a>(radius, surroundingLoop)</dt><dd><tt>Create extra fill loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-createFillForSurroundings"><strong>createFillForSurroundings</strong></a>(radius, surroundingLoops)</dt><dd><tt>Create extra fill loops for surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getAdditionalLength"><strong>getAdditionalLength</strong></a>(path, point, pointIndex)</dt><dd><tt>Get the additional length added by inserting a point into a path.</tt></dd></dl>
|
||||
<dl><dt><a name="-getClosestOppositeIntersectionPaths"><strong>getClosestOppositeIntersectionPaths</strong></a>(yIntersectionPaths)</dt><dd><tt>Get the close to center paths, starting with the first and an additional opposite if it exists.</tt></dd></dl>
|
||||
<dl><dt><a name="-getExtraFillLoops"><strong>getExtraFillLoops</strong></a>(insideLoops, outsideLoop, radius)</dt><dd><tt>Get extra loops between inside and outside loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFillChainGcode"><strong>getFillChainGcode</strong></a>(fileName, gcodeText, fillPreferences<font color="#909090">=None</font>)</dt><dd><tt>Fill the carves of a gcode text. Chain fill the gcode if it is not already carved.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFillGcode"><strong>getFillGcode</strong></a>(gcodeText, fillPreferences<font color="#909090">=None</font>)</dt><dd><tt>Fill the carves of a gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getHorizontalSegmentsFromLoopLists"><strong>getHorizontalSegmentsFromLoopLists</strong></a>(fillLoops, alreadyFilledArounds, y)</dt><dd><tt>Get horizontal segments inside loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getIntersectionOfXIntersectionIndexes"><strong>getIntersectionOfXIntersectionIndexes</strong></a>(totalSolidSurfaceThickness, xIntersectionIndexList)</dt><dd><tt>Get x intersections from surrounding layers.</tt></dd></dl>
|
||||
<dl><dt><a name="-getNonIntersectingGridPointLine"><strong>getNonIntersectingGridPointLine</strong></a>(arounds, gridPointInsetX, isJunctionWide, paths, pixelTable, yIntersectionPath, width)</dt><dd><tt>Get the points around the grid point that is junction wide that do not intersect.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPlusMinusSign"><strong>getPlusMinusSign</strong></a>(number)</dt><dd><tt>Get one if the number is zero or positive else negative one.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSurroundingXIntersections"><strong>getSurroundingXIntersections</strong></a>(doubleSolidSurfaceThickness, surroundingCarves, y)</dt><dd><tt>Get x intersections from surrounding layers.</tt></dd></dl>
|
||||
<dl><dt><a name="-getWithLeastLength"><strong>getWithLeastLength</strong></a>(path, point)</dt><dd><tt>Insert a point into a path, at the index at which the path would be shortest.</tt></dd></dl>
|
||||
<dl><dt><a name="-getYIntersection"><strong>getYIntersection</strong></a>(firstPoint, secondPoint, x)</dt><dd><tt>Get where the line crosses x.</tt></dd></dl>
|
||||
<dl><dt><a name="-getYIntersectionIfExists"><strong>getYIntersectionIfExists</strong></a>(complexFirst, complexSecond, x)</dt><dd><tt>Get the y intersection if it exists.</tt></dd></dl>
|
||||
<dl><dt><a name="-getYIntersectionInsideYSegment"><strong>getYIntersectionInsideYSegment</strong></a>(segmentFirstY, segmentSecondY, complexFirst, complexSecond, x)</dt><dd><tt>Get the y intersection inside the y segment if it does, else none.</tt></dd></dl>
|
||||
<dl><dt><a name="-insertGridPointPair"><strong>insertGridPointPair</strong></a>(arounds, gridPoint, gridPointInsetX, gridPoints, isJunctionWide, paths, pixelTable, yIntersectionPath, width)</dt><dd><tt>Insert a pair of points around the grid point is is junction wide, otherwise inset one point.</tt></dd></dl>
|
||||
<dl><dt><a name="-insertGridPointPairWithLinePath"><strong>insertGridPointPairWithLinePath</strong></a>(arounds, gridPoint, gridPointInsetX, gridPoints, isJunctionWide, linePath, paths, pixelTable, yIntersectionPath, width)</dt><dd><tt>Insert a pair of points around the grid point is is junction wide, otherwise inset one point.</tt></dd></dl>
|
||||
<dl><dt><a name="-insertGridPointPairs"><strong>insertGridPointPairs</strong></a>(arounds, gridPoint, gridPointInsetX, gridPoints, intersectionPathFirst, intersectionPathSecond, isBothOrNone, isJunctionWide, paths, pixelTable, width)</dt><dd><tt>Insert a pair of points around a pair of grid points.</tt></dd></dl>
|
||||
<dl><dt><a name="-isAddedPointOnPathFree"><strong>isAddedPointOnPathFree</strong></a>(path, pixelTable, point, pointIndex, width)</dt><dd><tt>Determine if the point added to a path is intersecting the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-isIntersectingLoopsPaths"><strong>isIntersectingLoopsPaths</strong></a>(loops, paths, pointBegin, pointEnd)</dt><dd><tt>Determine if the segment between the first and second point is intersecting the loop list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPathAlwaysInsideLoop"><strong>isPathAlwaysInsideLoop</strong></a>(loop, path)</dt><dd><tt>Determine if all points of a path are inside another loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPathAlwaysOutsideLoops"><strong>isPathAlwaysOutsideLoops</strong></a>(loops, path)</dt><dd><tt>Determine if all points in a path are outside another loop in a list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPerimeterPathInSurroundLoops"><strong>isPerimeterPathInSurroundLoops</strong></a>(surroundingLoops)</dt><dd><tt>Determine if there is a perimeter path in the surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPointAddedAroundClosest"><strong>isPointAddedAroundClosest</strong></a>(aroundPixelTable, layerExtrusionWidth, paths, removedEndpointPoint, width)</dt><dd><tt>Add the closest removed endpoint to the path, with minimal twisting.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSegmentAround"><strong>isSegmentAround</strong></a>(aroundSegments, segment)</dt><dd><tt>Determine if there is another segment around.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSegmentCompletelyInAnIntersection"><strong>isSegmentCompletelyInAnIntersection</strong></a>(segment, xIntersections)</dt><dd><tt>Add sparse endpoints from a segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSegmentInX"><strong>isSegmentInX</strong></a>(segment, xFirst, xSecond)</dt><dd><tt>Determine if the segment overlaps within x.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSharpCorner"><strong>isSharpCorner</strong></a>(beginComplex, centerComplex, endComplex)</dt><dd><tt>Determine if the three complex points form a sharp corner.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSidePointAdded"><strong>isSidePointAdded</strong></a>(aroundPixelTable, closestPath, closestPointIndex, layerExtrusionWidth, removedEndpointPoint, width)</dt><dd><tt>Add side point along with the closest removed endpoint to the path, with minimal twisting.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the fill dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-removeEndpoints"><strong>removeEndpoints</strong></a>(aroundPixelTable, layerExtrusionWidth, paths, removedEndpoints, aroundWidth)</dt><dd><tt>Remove endpoints which are added to the path.</tt></dd></dl>
|
||||
<dl><dt><a name="-setIsOutside"><strong>setIsOutside</strong></a>(yCloseToCenterPath, yIntersectionPaths)</dt><dd><tt>Determine if the yCloseToCenterPath is outside.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Fill the carves of a gcode file. Chain carve the file if it is a GNU TriangulatedSurface file. If no fileName is specified, fill the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/28/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,418 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.fillet</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.fillet</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/fillet.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/fillet.py</a></font></td></tr></table>
|
||||
<p><tt>Fillet is a script to fillet or bevel the corners on a gcode file.<br>
|
||||
<br>
|
||||
The default 'Activate Fillet' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
Fillet rounds the corners slightly in a variety of ways. This is to reduce corner blobbing and sudden extruder acceleration.<br>
|
||||
The 'Arc Point' method fillets the corners with an arc using the gcode point form. The 'Arc Radius' method fillets with an arc<br>
|
||||
using the gcode radius form. The 'Arc Segment' method fillets corners with an arc composed of several segments. The<br>
|
||||
'Bevel' method bevels each corner. The default radio button choice is 'Bevel'.<br>
|
||||
<br>
|
||||
The 'Corner Feedrate over Operating Feedrate' is the ratio of the feedrate in corners over the operating feedrate. With a high<br>
|
||||
value the extruder will move quickly in corners, accelerating quickly and leaving a thin extrusion. With a low value, the<br>
|
||||
extruder will move slowly in corners, accelerating gently and leaving a thick extrusion. The default value is 1.0. The 'Fillet<br>
|
||||
Radius over Extrusion Width' ratio determines how much wide the fillet will be, the default is 0.35. The 'Reversal Slowdown<br>
|
||||
over Extrusion Width' ratio determines how far before a path reversal the extruder will slow down. Some tools, like nozzle<br>
|
||||
wipe, double back the path of the extruder and this option will add a slowdown point in that path so there won't be a sudden<br>
|
||||
jerk at the end of the path. The default value is 0.5 and if the value is less than 0.1 a slowdown will not be added. If<br>
|
||||
'Use Intermediate Feedrate in Corners' is chosen, the feedrate entering the corner will be the average of the old feedrate and<br>
|
||||
the new feedrate, the default is true. To run fillet, in a shell in the folder which fillet is in type:<br>
|
||||
> python fillet.py<br>
|
||||
<br>
|
||||
The following examples fillet the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the folder<br>
|
||||
which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and fillet.py. The fillet function executes the preferred fillet type, which<br>
|
||||
can be set in the dialog or by changing the preferences file 'fillet.csv' with a text editor or a spreadsheet program set to separate<br>
|
||||
tabs. The functions writeOutput and getFilletChainGcode check to see if the text has been combed, if not they call the<br>
|
||||
getOozebaneChainGcode in oozebane.py to fill the text; once they have the oozebaned text, then they fillet.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python fillet.py<br>
|
||||
This brings up the dialog, after clicking 'Fillet', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain filleted.<br>
|
||||
The filleted file is saved as Screw Holder Bottom_fillet.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import fillet<br>
|
||||
>>> fillet.<a href="#-main">main</a>()<br>
|
||||
This brings up the fillet dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-arcPointFile">arcPointFile</a>()<br>
|
||||
File Screw Holder Bottom.gcode is being filleted into arc points.<br>
|
||||
The arc point file is saved as Screw Holder Bottom_fillet.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-arcRadiusFile">arcRadiusFile</a>()<br>
|
||||
File Screw Holder Bottom.gcode is being filleted into arc radiuses.<br>
|
||||
The arc radius file is saved as Screw Holder Bottom_fillet.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-arcSegmentFile">arcSegmentFile</a>()<br>
|
||||
File Screw Holder Bottom.gcode is being arc segmented.<br>
|
||||
The arc segment file is saved as Screw Holder Bottom_fillet.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-bevelFile">bevelFile</a>()<br>
|
||||
File Screw Holder Bottom.gcode is being beveled.<br>
|
||||
The beveled file is saved as Screw Holder Bottom_fillet.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-getArcPointGcode">getArcPointGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-getArcRadiusGcode">getArcRadiusGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-getArcSegmentGcode">getArcSegmentGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-getBevelGcode">getBevelGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-getFilletGcode">getFilletGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-getFilletChainGcode">getFilletChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> fillet.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.gcode is being chain filleted.<br>
|
||||
The filleted file is saved as Screw Holder Bottom_fillet.gcode</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.oozebane.html">skeinforge_tools.oozebane</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.fillet.html#ArcSegmentSkein">ArcSegmentSkein</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.fillet.html#ArcPointSkein">ArcPointSkein</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.fillet.html#ArcRadiusSkein">ArcRadiusSkein</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.fillet.html#FilletPreferences">FilletPreferences</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ArcPointSkein">class <strong>ArcPointSkein</strong></a>(<a href="skeinforge_tools.fillet.html#ArcSegmentSkein">ArcSegmentSkein</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to arc point a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.fillet.html#ArcPointSkein">ArcPointSkein</a></dd>
|
||||
<dd><a href="skeinforge_tools.fillet.html#ArcSegmentSkein">ArcSegmentSkein</a></dd>
|
||||
<dd><a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="ArcPointSkein-addArc"><strong>addArc</strong></a>(self, afterCenterDifferenceAngle, afterPoint, beforeCenterSegment, beforePoint, center)</dt><dd><tt>Add an arc point to the filleted skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-addRelativeCenter"><strong>addRelativeCenter</strong></a>(self, centerMinusBefore)</dt><dd><tt>Add the relative center to a line of the arc point filleted skein.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.fillet.html#ArcSegmentSkein">ArcSegmentSkein</a>:<br>
|
||||
<dl><dt><a name="ArcPointSkein-splitPointGetAfter"><strong>splitPointGetAfter</strong></a>(self, location, nextLocation)</dt><dd><tt>Fillet a point into arc segments and return the end of the last segment.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a>:<br>
|
||||
<dl><dt><a name="ArcPointSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-addFeedrateEnd"><strong>addFeedrateEnd</strong></a>(self, feedrate)</dt><dd><tt>Add the gcode feedrate and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-addLinearMovePoint"><strong>addLinearMovePoint</strong></a>(self, feedrate, point)</dt><dd><tt>Add a gcode linear move, feedrate and newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-addPoint"><strong>addPoint</strong></a>(self, point)</dt><dd><tt>Add a gcode point to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-getCornerFeedrate"><strong>getCornerFeedrate</strong></a>(self)</dt><dd><tt>Get the corner feedrate, which may be based on the intermediate feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-getExtruderOffReversalPoint"><strong>getExtruderOffReversalPoint</strong></a>(self, afterSegment, beforeSegment, location)</dt><dd><tt>If the extruder is off and the path is reversing, add intermediate slow points.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-getNextLocation"><strong>getNextLocation</strong></a>(self)</dt><dd><tt>Get the next linear move. Return none is none is found.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Bevel a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-parseGcode"><strong>parseGcode</strong></a>(self, filletPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, filletPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcPointSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ArcRadiusSkein">class <strong>ArcRadiusSkein</strong></a>(<a href="skeinforge_tools.fillet.html#ArcPointSkein">ArcPointSkein</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to arc radius a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.fillet.html#ArcRadiusSkein">ArcRadiusSkein</a></dd>
|
||||
<dd><a href="skeinforge_tools.fillet.html#ArcPointSkein">ArcPointSkein</a></dd>
|
||||
<dd><a href="skeinforge_tools.fillet.html#ArcSegmentSkein">ArcSegmentSkein</a></dd>
|
||||
<dd><a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="ArcRadiusSkein-addRelativeCenter"><strong>addRelativeCenter</strong></a>(self, centerMinusBefore)</dt><dd><tt>Add the relative center to a line of the arc radius filleted skein.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.fillet.html#ArcPointSkein">ArcPointSkein</a>:<br>
|
||||
<dl><dt><a name="ArcRadiusSkein-addArc"><strong>addArc</strong></a>(self, afterCenterDifferenceAngle, afterPoint, beforeCenterSegment, beforePoint, center)</dt><dd><tt>Add an arc point to the filleted skein.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.fillet.html#ArcSegmentSkein">ArcSegmentSkein</a>:<br>
|
||||
<dl><dt><a name="ArcRadiusSkein-splitPointGetAfter"><strong>splitPointGetAfter</strong></a>(self, location, nextLocation)</dt><dd><tt>Fillet a point into arc segments and return the end of the last segment.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a>:<br>
|
||||
<dl><dt><a name="ArcRadiusSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-addFeedrateEnd"><strong>addFeedrateEnd</strong></a>(self, feedrate)</dt><dd><tt>Add the gcode feedrate and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-addLinearMovePoint"><strong>addLinearMovePoint</strong></a>(self, feedrate, point)</dt><dd><tt>Add a gcode linear move, feedrate and newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-addPoint"><strong>addPoint</strong></a>(self, point)</dt><dd><tt>Add a gcode point to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-getCornerFeedrate"><strong>getCornerFeedrate</strong></a>(self)</dt><dd><tt>Get the corner feedrate, which may be based on the intermediate feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-getExtruderOffReversalPoint"><strong>getExtruderOffReversalPoint</strong></a>(self, afterSegment, beforeSegment, location)</dt><dd><tt>If the extruder is off and the path is reversing, add intermediate slow points.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-getNextLocation"><strong>getNextLocation</strong></a>(self)</dt><dd><tt>Get the next linear move. Return none is none is found.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Bevel a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-parseGcode"><strong>parseGcode</strong></a>(self, filletPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, filletPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcRadiusSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ArcSegmentSkein">class <strong>ArcSegmentSkein</strong></a>(<a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to arc segment a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ArcSegmentSkein-addArc"><strong>addArc</strong></a>(self, afterCenterDifferenceAngle, afterPoint, beforeCenterSegment, beforePoint, center)</dt><dd><tt>Add arc segments to the filleted skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-splitPointGetAfter"><strong>splitPointGetAfter</strong></a>(self, location, nextLocation)</dt><dd><tt>Fillet a point into arc segments and return the end of the last segment.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.fillet.html#BevelSkein">BevelSkein</a>:<br>
|
||||
<dl><dt><a name="ArcSegmentSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-addFeedrateEnd"><strong>addFeedrateEnd</strong></a>(self, feedrate)</dt><dd><tt>Add the gcode feedrate and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-addLinearMovePoint"><strong>addLinearMovePoint</strong></a>(self, feedrate, point)</dt><dd><tt>Add a gcode linear move, feedrate and newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-addPoint"><strong>addPoint</strong></a>(self, point)</dt><dd><tt>Add a gcode point to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-getCornerFeedrate"><strong>getCornerFeedrate</strong></a>(self)</dt><dd><tt>Get the corner feedrate, which may be based on the intermediate feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-getExtruderOffReversalPoint"><strong>getExtruderOffReversalPoint</strong></a>(self, afterSegment, beforeSegment, location)</dt><dd><tt>If the extruder is off and the path is reversing, add intermediate slow points.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-getNextLocation"><strong>getNextLocation</strong></a>(self)</dt><dd><tt>Get the next linear move. Return none is none is found.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Bevel a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-parseGcode"><strong>parseGcode</strong></a>(self, filletPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, filletPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ArcSegmentSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="BevelSkein">class <strong>BevelSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to bevel a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="BevelSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-addFeedrateEnd"><strong>addFeedrateEnd</strong></a>(self, feedrate)</dt><dd><tt>Add the gcode feedrate and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-addLinearMovePoint"><strong>addLinearMovePoint</strong></a>(self, feedrate, point)</dt><dd><tt>Add a gcode linear move, feedrate and newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-addPoint"><strong>addPoint</strong></a>(self, point)</dt><dd><tt>Add a gcode point to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-getCornerFeedrate"><strong>getCornerFeedrate</strong></a>(self)</dt><dd><tt>Get the corner feedrate, which may be based on the intermediate feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-getExtruderOffReversalPoint"><strong>getExtruderOffReversalPoint</strong></a>(self, afterSegment, beforeSegment, location)</dt><dd><tt>If the extruder is off and the path is reversing, add intermediate slow points.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-getNextLocation"><strong>getNextLocation</strong></a>(self)</dt><dd><tt>Get the next linear move. Return none is none is found.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Bevel a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-parseGcode"><strong>parseGcode</strong></a>(self, filletPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, filletPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BevelSkein-splitPointGetAfter"><strong>splitPointGetAfter</strong></a>(self, location, nextLocation)</dt><dd><tt>Bevel a point and return the end of the bevel.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="FilletPreferences">class <strong>FilletPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the fillet preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="FilletPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FilletPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Fillet button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-arcPointFile"><strong>arcPointFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Fillet a gcode linear move file into a helical point move file. If no fileName is specified, arc point the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-arcRadiusFile"><strong>arcRadiusFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Fillet a gcode linear move file into a helical radius move file. If no fileName is specified, arc radius the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-arcSegmentFile"><strong>arcSegmentFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Fillet a gcode linear move file into an arc segment linear move file. If no fileName is specified, arc segment the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-bevelFile"><strong>bevelFile</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Bevel a gcode linear move file. If no fileName is specified, bevel the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-getArcPointGcode"><strong>getArcPointGcode</strong></a>(filletPreferences, gcodeText)</dt><dd><tt>Arc point a gcode linear move text into a helical point move gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getArcRadiusGcode"><strong>getArcRadiusGcode</strong></a>(filletPreferences, gcodeText)</dt><dd><tt>Arc radius a gcode linear move text into a helical radius move gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getArcSegmentGcode"><strong>getArcSegmentGcode</strong></a>(filletPreferences, gcodeText)</dt><dd><tt>Arc segment a gcode linear move text into an arc segment linear move gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getBevelGcode"><strong>getBevelGcode</strong></a>(filletPreferences, gcodeText)</dt><dd><tt>Bevel a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFilletChainGcode"><strong>getFilletChainGcode</strong></a>(fileName, gcodeText, filletPreferences<font color="#909090">=None</font>)</dt><dd><tt>Fillet a gcode linear move text. Chain oozebane the gcode if it is not already oozebaned.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFilletGcode"><strong>getFilletGcode</strong></a>(gcodeText, filletPreferences<font color="#909090">=None</font>)</dt><dd><tt>Fillet a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the fillet dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Fillet a gcode linear move file. Chain fill the gcode if it is not already filled.<br>
|
||||
Depending on the preferences, either arcPoint, arcRadius, arcSegment, bevel or do nothing.<br>
|
||||
If no fileName is specified, fillet the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,169 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.hop</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.hop</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/hop.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/hop.py</a></font></td></tr></table>
|
||||
<p><tt>Hop is a script to raise the extruder when it is not extruding.<br>
|
||||
<br>
|
||||
The default 'Activate Hop' checkbox is off. It is off because Vik and Nophead found better results without hopping. When it<br>
|
||||
is on, the functions described below will work, when it is off, the functions will not be called.<br>
|
||||
<br>
|
||||
The important value for the hop preferences is "Hop Over Layer Thickness (ratio)" which is the ratio of the hop height over the<br>
|
||||
layer thickness, the default is 1.0. The 'Minimum Hop Angle (degrees)' is the minimum angle that the path of the extruder<br>
|
||||
will be raised. An angle of ninety means that the extruder will go straight up as soon as it is not extruding and a low angle<br>
|
||||
means the extruder path will gradually rise to the hop height, the default is 20 degrees.<br>
|
||||
<br>
|
||||
To run hop, in a shell which hop is in type:<br>
|
||||
> python hop.py<br>
|
||||
<br>
|
||||
The following examples hop the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and hop.py. The hop function will hop if the 'Activate Hop'<br>
|
||||
checkbox is on. The functions writeOutput and getHopChainGcode check to see if the text has been hopped, if not they<br>
|
||||
call the getStretchChainGcode in stretch.py to stretch the text; once they have the stretched text, then they hop.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python hop.py<br>
|
||||
This brings up the dialog, after clicking 'Hop', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain hopped.<br>
|
||||
The hopped file is saved as Screw Holder Bottom_hop.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import hop<br>
|
||||
>>> hop.<a href="#-main">main</a>()<br>
|
||||
This brings up the hop dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> hop.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain hopped.<br>
|
||||
The hopped file is saved as Screw Holder Bottom_hop.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> hop.<a href="#-getHopGcode">getHopGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> hop.<a href="#-getHopChainGcode">getHopChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.stretch.html">skeinforge_tools.stretch</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.hop.html#HopPreferences">HopPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.hop.html#HopSkein">HopSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="HopPreferences">class <strong>HopPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the hop preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="HopPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Hop button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="HopSkein">class <strong>HopSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to hop a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="HopSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-getHopLine"><strong>getHopLine</strong></a>(self, line)</dt><dd><tt>Get hopped gcode line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-getMovementLineWithHop"><strong>getMovementLineWithHop</strong></a>(self, location, z)</dt><dd><tt>Get linear movement line for a location.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-isNextTravel"><strong>isNextTravel</strong></a>(self)</dt><dd><tt>Determine if there is another linear travel before the thread ends.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, hopPreferences)</dt><dd><tt>Parse gcode text and store the hop gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, hopPreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="HopSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getHopChainGcode"><strong>getHopChainGcode</strong></a>(fileName, gcodeText, hopPreferences<font color="#909090">=None</font>)</dt><dd><tt>Hop a gcode linear move text. Chain hop the gcode if it is not already hopped.</tt></dd></dl>
|
||||
<dl><dt><a name="-getHopGcode"><strong>getHopGcode</strong></a>(gcodeText, hopPreferences<font color="#909090">=None</font>)</dt><dd><tt>Hop a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the hop dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Hop a gcode linear move file. Chain hop the gcode if it is not already hopped. If no fileName is specified, hop the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: package skeinforge_tools</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>skeinforge_tools</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/__init__.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/__init__.py</a></font></td></tr></table>
|
||||
<p><tt>#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="skeinforge_tools.analyze.html">analyze</a><br>
|
||||
<a href="skeinforge_tools.analyze_plugins.html"><strong>analyze_plugins</strong> (package)</a><br>
|
||||
<a href="skeinforge_tools.carve.html">carve</a><br>
|
||||
<a href="skeinforge_tools.clip.html">clip</a><br>
|
||||
<a href="skeinforge_tools.comb.html">comb</a><br>
|
||||
<a href="skeinforge_tools.cool.html">cool</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.export.html">export</a><br>
|
||||
<a href="skeinforge_tools.export_plugins.html"><strong>export_plugins</strong> (package)</a><br>
|
||||
<a href="skeinforge_tools.fill.html">fill</a><br>
|
||||
<a href="skeinforge_tools.fillet.html">fillet</a><br>
|
||||
<a href="skeinforge_tools.hop.html">hop</a><br>
|
||||
<a href="skeinforge_tools.import_plugins.html"><strong>import_plugins</strong> (package)</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.inset.html">inset</a><br>
|
||||
<a href="skeinforge_tools.material.html">material</a><br>
|
||||
<a href="skeinforge_tools.multiply.html">multiply</a><br>
|
||||
<a href="skeinforge_tools.oozebane.html">oozebane</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">polyfile</a><br>
|
||||
<a href="skeinforge_tools.raft.html">raft</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.html"><strong>skeinforge_utilities</strong> (package)</a><br>
|
||||
<a href="skeinforge_tools.speed.html">speed</a><br>
|
||||
<a href="skeinforge_tools.stretch.html">stretch</a><br>
|
||||
<a href="skeinforge_tools.tower.html">tower</a><br>
|
||||
<a href="skeinforge_tools.unpause.html">unpause</a><br>
|
||||
<a href="skeinforge_tools.wipe.html">wipe</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>level</strong> = 1<br>
|
||||
<strong>numberOfLevelsDeepInPackageHierarchy</strong> = 1<br>
|
||||
<strong>packageFilePath</strong> = '/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap'</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,83 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.import_plugins.gts</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.import_plugins.html"><font color="#ffffff">import_plugins</font></a>.gts</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/gts.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/gts.py</a></font></td></tr></table>
|
||||
<p><tt>The gts.py script is an import translator plugin to get a carving from an gts file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an gts file and returns the carving.<br>
|
||||
<br>
|
||||
The GNU Triangulated Surface (.gts) format is described at:<br>
|
||||
<a href="http://gts.sourceforge.net/reference/gts-surfaces.html#GTS-SURFACE-WRITE">http://gts.sourceforge.net/reference/gts-surfaces.html#GTS-SURFACE-WRITE</a><br>
|
||||
<br>
|
||||
This example gets a carving for the gts file Screw Holder Bottom.gts. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.gts and gts.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import gts<br>
|
||||
>>> gts.<a href="#-getCarving">getCarving</a>()<br>
|
||||
[11.6000003815, 10.6837882996, 7.80209827423<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html">skeinforge_tools.skeinforge_utilities.triangle_mesh</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getCarving"><strong>getCarving</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Get the triangle mesh for the gts file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFromGNUTriangulatedSurfaceText"><strong>getFromGNUTriangulatedSurfaceText</strong></a>(gnuTriangulatedSurfaceText, triangleMesh)</dt><dd><tt>Initialize from a GNU Triangulated Surface Text.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: package skeinforge_tools.import_plugins</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.import_plugins</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/__init__.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/__init__.py</a></font></td></tr></table>
|
||||
<p><tt>#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="skeinforge_tools.import_plugins.gts.html">gts</a><br>
|
||||
<a href="skeinforge_tools.import_plugins.slc.html">slc</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.import_plugins.stl.html">stl</a><br>
|
||||
<a href="skeinforge_tools.import_plugins.svg.html">svg</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.import_plugins.xml.html">xml</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>level</strong> = 2<br>
|
||||
<strong>numberOfLevelsDeepInPackageHierarchy</strong> = 2<br>
|
||||
<strong>packageFilePath</strong> = '/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap'</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,150 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.import_plugins.slc</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.import_plugins.html"><font color="#ffffff">import_plugins</font></a>.slc</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/slc.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/slc.py</a></font></td></tr></table>
|
||||
<p><tt>The slc.py script is an import translator plugin to get a carving from an slc file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an slc file and returns the carving.<br>
|
||||
<br>
|
||||
This example gets a triangle mesh for the slc file rotor.slc. This example is run in a terminal in the folder which contains<br>
|
||||
rotor.slc and slc.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import slc<br>
|
||||
>>> slc.<a href="#-getCarving">getCarving</a>()<br>
|
||||
0.20000000298, 999999999.0, -999999999.0, [8.72782748851e-17, None<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..<br>
|
||||
<br>
|
||||
<br>
|
||||
An explanation of the SLC format can be found at:<br>
|
||||
<a href="http://rapid.lpt.fi/archives/rp-ml-1999/0713.html">http://rapid.lpt.fi/archives/rp-ml-1999/0713.html</a></tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.slc.html#SLCCarving">SLCCarving</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.slc.html#SampleTableEntry">SampleTableEntry</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SLCCarving">class <strong>SLCCarving</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An slc carving.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SLCCarving-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this carving.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-getCarveCornerMaximum"><strong>getCarveCornerMaximum</strong></a>(self)</dt><dd><tt>Get the corner maximum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-getCarveCornerMinimum"><strong>getCarveCornerMinimum</strong></a>(self)</dt><dd><tt>Get the corner minimum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-getCarveLayerThickness"><strong>getCarveLayerThickness</strong></a>(self)</dt><dd><tt>Get the layer thickness.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-getCarveRotatedBoundaryLayers"><strong>getCarveRotatedBoundaryLayers</strong></a>(self)</dt><dd><tt>Get the rotated boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-processContourLayers"><strong>processContourLayers</strong></a>(self, file)</dt><dd><tt>Process a contour layer at a time until the top of the part.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-readFile"><strong>readFile</strong></a>(self, fileName)</dt><dd><tt>Read SLC and store the layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-readTableEntry"><strong>readTableEntry</strong></a>(self, file)</dt><dd><tt>Read in the sampling table section. It contains a table length (byte) and the table entries.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-setCarveBridgeLayerThickness"><strong>setCarveBridgeLayerThickness</strong></a>(self, bridgeLayerThickness)</dt><dd><tt>Set the bridge layer thickness. If the infill is not in the direction of the bridge, the bridge layer thickness should be given as None or not set at all.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-setCarveImportRadius"><strong>setCarveImportRadius</strong></a>(self, importRadius)</dt><dd><tt>Set the import radius.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-setCarveIsCorrectMesh"><strong>setCarveIsCorrectMesh</strong></a>(self, isCorrectMesh)</dt><dd><tt>Set the is correct mesh flag.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SLCCarving-setCarveLayerThickness"><strong>setCarveLayerThickness</strong></a>(self, layerThickness)</dt><dd><tt>Set the layer thickness.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SampleTableEntry">class <strong>SampleTableEntry</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>Sample table entry.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SampleTableEntry-__init__"><strong>__init__</strong></a>(self, file)</dt><dd><tt>Read in the sampling table section. It contains a table length (byte) and the table entries.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SampleTableEntry-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this sample table entry.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getCarving"><strong>getCarving</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Get the triangle mesh for the slc file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLittleEndianFloatGivenFile"><strong>getLittleEndianFloatGivenFile</strong></a>(file)</dt><dd><tt>Get little endian float given a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLittleEndianUnsignedLongGivenFile"><strong>getLittleEndianUnsignedLongGivenFile</strong></a>(file)</dt><dd><tt>Get little endian float given a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPointsFromFile"><strong>getPointsFromFile</strong></a>(numPoints, file)</dt><dd><tt>Process the vertice points for a given boundary.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the inset dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-readHeader"><strong>readHeader</strong></a>(file)</dt><dd><tt>Read the slc header.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,92 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.import_plugins.stl</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.import_plugins.html"><font color="#ffffff">import_plugins</font></a>.stl</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/stl.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/stl.py</a></font></td></tr></table>
|
||||
<p><tt>The stl.py script is an import translator plugin to get a carving from an stl file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an stl file and returns the carving.<br>
|
||||
<br>
|
||||
STL is an inferior triangle surface format, described at:<br>
|
||||
<a href="http://en.wikipedia.org/wiki/STL_(file_format">http://en.wikipedia.org/wiki/STL_(file_format</a>)<br>
|
||||
<br>
|
||||
A good triangle surface format is the GNU Triangulated Surface format which is described at:<br>
|
||||
<a href="http://gts.sourceforge.net/reference/gts-surfaces.html#GTS-SURFACE-WRITE">http://gts.sourceforge.net/reference/gts-surfaces.html#GTS-SURFACE-WRITE</a><br>
|
||||
<br>
|
||||
This example gets a carving for the stl file Screw Holder Bottom.stl. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.stl and stl.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import stl<br>
|
||||
>>> stl.<a href="#-getCarving">getCarving</a>()<br>
|
||||
[11.6000003815, 10.6837882996, 7.80209827423<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html">skeinforge_tools.skeinforge_utilities.triangle_mesh</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addFacesGivenBinary"><strong>addFacesGivenBinary</strong></a>(stlData, triangleMesh, vertexIndexTable)</dt><dd><tt>Add faces given stl binary.</tt></dd></dl>
|
||||
<dl><dt><a name="-addFacesGivenText"><strong>addFacesGivenText</strong></a>(stlText, triangleMesh, vertexIndexTable)</dt><dd><tt>Add faces given stl text.</tt></dd></dl>
|
||||
<dl><dt><a name="-addFacesGivenVertices"><strong>addFacesGivenVertices</strong></a>(triangleMesh, vertexIndexTable, vertices)</dt><dd><tt>Add faces given stl text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarving"><strong>getCarving</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Get the triangle mesh for the stl file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFaceGivenLines"><strong>getFaceGivenLines</strong></a>(triangleMesh, vertexStartIndex, vertexIndexTable, vertices)</dt><dd><tt>Add face given line index and lines.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFloatGivenBinary"><strong>getFloatGivenBinary</strong></a>(byteIndex, stlData)</dt><dd><tt>Get vertex given stl vertex line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getVertexGivenBinary"><strong>getVertexGivenBinary</strong></a>(byteIndex, stlData)</dt><dd><tt>Get vertex given stl vertex line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getVertexGivenLine"><strong>getVertexGivenLine</strong></a>(line)</dt><dd><tt>Get vertex given stl vertex line.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,128 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.import_plugins.svg</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.import_plugins.html"><font color="#ffffff">import_plugins</font></a>.svg</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/svg.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/svg.py</a></font></td></tr></table>
|
||||
<p><tt>The svg.py script is an import translator plugin to get a carving from an svg file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an svg file and returns the carving.<br>
|
||||
<br>
|
||||
This example gets a carving for the svg file Screw Holder Bottom.svg. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.svg and svg.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import svg<br>
|
||||
>>> svg.<a href="#-getCarving">getCarving</a>()<br>
|
||||
0.20000000298, 999999999.0, -999999999.0, [8.72782748851e-17, None<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.svg.html#SVGCarving">SVGCarving</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SVGCarving">class <strong>SVGCarving</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An svg carving.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SVGCarving-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this carving.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-getCarveCornerMaximum"><strong>getCarveCornerMaximum</strong></a>(self)</dt><dd><tt>Get the corner maximum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-getCarveCornerMinimum"><strong>getCarveCornerMinimum</strong></a>(self)</dt><dd><tt>Get the corner minimum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-getCarveLayerThickness"><strong>getCarveLayerThickness</strong></a>(self)</dt><dd><tt>Get the layer thickness.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-getCarveRotatedBoundaryLayers"><strong>getCarveRotatedBoundaryLayers</strong></a>(self)</dt><dd><tt>Get the rotated boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-parseLine"><strong>parseLine</strong></a>(self, lineIndex)</dt><dd><tt>Parse a gcode line and add it to the inset skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-parseSVG"><strong>parseSVG</strong></a>(self, svgText)</dt><dd><tt>Parse SVG text and store the layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-setCarveBridgeLayerThickness"><strong>setCarveBridgeLayerThickness</strong></a>(self, bridgeLayerThickness)</dt><dd><tt>Set the bridge layer thickness. If the infill is not in the direction of the bridge, the bridge layer thickness should be given as None or not set at all.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-setCarveImportRadius"><strong>setCarveImportRadius</strong></a>(self, importRadius)</dt><dd><tt>Set the import radius.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-setCarveIsCorrectMesh"><strong>setCarveIsCorrectMesh</strong></a>(self, isCorrectMesh)</dt><dd><tt>Set the is correct mesh flag.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SVGCarving-setCarveLayerThickness"><strong>setCarveLayerThickness</strong></a>(self, layerThickness)</dt><dd><tt>Set the layer thickness.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addPathData"><strong>addPathData</strong></a>(line, loops)</dt><dd><tt>Add the data from the path line.</tt></dd></dl>
|
||||
<dl><dt><a name="-addTextData"><strong>addTextData</strong></a>(line, rotatedBoundaryLayers)</dt><dd><tt>Add the data from the text line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarving"><strong>getCarving</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Get the triangle mesh for the gts file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getValueInQuotes"><strong>getValueInQuotes</strong></a>(name, text, value)</dt><dd><tt>Get value in quotes after the name.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,353 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.import_plugins.xml</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.import_plugins.html"><font color="#ffffff">import_plugins</font></a>.xml</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/xml.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_plugins/xml.py</a></font></td></tr></table>
|
||||
<p><tt>The xml.py script is an import translator plugin to get a carving from an Art of Illusion xml file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an xml file and returns the carving.<br>
|
||||
<br>
|
||||
This example gets a triangle mesh for the xml file boolean.xml. This example is run in a terminal in the folder which contains<br>
|
||||
boolean.xml and xml.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import xml<br>
|
||||
>>> xml.<a href="#-getCarving">getCarving</a>().getCarveRotatedBoundaryLayers()<br>
|
||||
[-1.159765625, None, [[(-18.925000000000001-2.4550000000000001j), (-18.754999999999981-2.4550000000000001j)<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..<br>
|
||||
<br>
|
||||
<br>
|
||||
An xml file can be exported from Art of Illusion by going to the "File" menu, then going into the "Export" menu item, then<br>
|
||||
picking the XML choice. This will bring up the XML file chooser window, choose a place to save the file then click "OK".<br>
|
||||
Leave the "compressFile" checkbox unchecked. All the objects from the scene will be exported, this plugin will ignore<br>
|
||||
the light and camera. If you want to fabricate more than one object at a time, you can have multiple objects in the Art of<br>
|
||||
Illusion scene and they will all be carved, then fabricated together.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html">skeinforge_tools.skeinforge_utilities.triangle_mesh</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#Matrix4By4">Matrix4By4</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#CSGObjectObjectInfo">CSGObjectObjectInfo</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#CylinderObjectInfo">CylinderObjectInfo</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#SphereObjectInfo">SphereObjectInfo</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.import_plugins.xml.html#XMLCarving">XMLCarving</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CSGObjectObjectInfo">class <strong>CSGObjectObjectInfo</strong></a>(<a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An Art of Illusion CSG object info.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CSGObjectObjectInfo-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getIntersectedLoops"><strong>getIntersectedLoops</strong></a>(self, importRadius, subObjectInfoLoopsList)</dt><dd><tt>Get intersected loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getJoinedLoops"><strong>getJoinedLoops</strong></a>(self, importRadius, subObjectInfoLoopsList)</dt><dd><tt>Get joined loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getLoops"><strong>getLoops</strong></a>(self, importRadius, z)</dt><dd><tt>Get loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getSubtractedLoops"><strong>getSubtractedLoops</strong></a>(self, importRadius, subObjectInfoLoopsList)</dt><dd><tt>Get subtracted loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getVertices"><strong>getVertices</strong></a>(self)</dt><dd><tt>Get all vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-setShape"><strong>setShape</strong></a>(self, matrix4By4)</dt><dd><tt>Set the shape of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>:<br>
|
||||
<dl><dt><a name="CSGObjectObjectInfo-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set name to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getNewCarvableObjectInfo"><strong>getNewCarvableObjectInfo</strong></a>(self, objectInfoElement)</dt><dd><tt>Get new carvable object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CSGObjectObjectInfo-getTransformAttributeTable"><strong>getTransformAttributeTable</strong></a>(self, coords, transformName)</dt><dd><tt>Get the transform attributes.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CubeObjectInfo">class <strong>CubeObjectInfo</strong></a>(<a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An Art of Illusion Cube object info.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CubeObjectInfo-setBottomTopTriangleMesh"><strong>setBottomTopTriangleMesh</strong></a>(self, edgeTriples, matrix4By4, vertexPairs, vertices)</dt><dd><tt>Set the bottom, top and triangle mesh of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CubeObjectInfo-setShape"><strong>setShape</strong></a>(self, matrix4By4)</dt><dd><tt>Set the shape of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>:<br>
|
||||
<dl><dt><a name="CubeObjectInfo-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set name to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CubeObjectInfo-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CubeObjectInfo-getLoops"><strong>getLoops</strong></a>(self, importRadius, z)</dt><dd><tt>Get loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CubeObjectInfo-getNewCarvableObjectInfo"><strong>getNewCarvableObjectInfo</strong></a>(self, objectInfoElement)</dt><dd><tt>Get new carvable object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CubeObjectInfo-getTransformAttributeTable"><strong>getTransformAttributeTable</strong></a>(self, coords, transformName)</dt><dd><tt>Get the transform attributes.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CubeObjectInfo-getVertices"><strong>getVertices</strong></a>(self)</dt><dd><tt>Get all vertices.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CylinderObjectInfo">class <strong>CylinderObjectInfo</strong></a>(<a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An Art of Illusion Cylinder object info.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.import_plugins.xml.html#CylinderObjectInfo">CylinderObjectInfo</a></dd>
|
||||
<dd><a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a></dd>
|
||||
<dd><a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="CylinderObjectInfo-setShape"><strong>setShape</strong></a>(self, matrix4By4)</dt><dd><tt>Set the shape of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a>:<br>
|
||||
<dl><dt><a name="CylinderObjectInfo-setBottomTopTriangleMesh"><strong>setBottomTopTriangleMesh</strong></a>(self, edgeTriples, matrix4By4, vertexPairs, vertices)</dt><dd><tt>Set the bottom, top and triangle mesh of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>:<br>
|
||||
<dl><dt><a name="CylinderObjectInfo-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set name to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CylinderObjectInfo-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CylinderObjectInfo-getLoops"><strong>getLoops</strong></a>(self, importRadius, z)</dt><dd><tt>Get loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CylinderObjectInfo-getNewCarvableObjectInfo"><strong>getNewCarvableObjectInfo</strong></a>(self, objectInfoElement)</dt><dd><tt>Get new carvable object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CylinderObjectInfo-getTransformAttributeTable"><strong>getTransformAttributeTable</strong></a>(self, coords, transformName)</dt><dd><tt>Get the transform attributes.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CylinderObjectInfo-getVertices"><strong>getVertices</strong></a>(self)</dt><dd><tt>Get all vertices.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Matrix4By4">class <strong>Matrix4By4</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A four by four matrix.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Matrix4By4-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Matrix4By4-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this four by four matrix.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Matrix4By4-getFromAttributeTable"><strong>getFromAttributeTable</strong></a>(self, attributeTable)</dt><dd><tt>Get the from row column attribute strings, counting from one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Matrix4By4-getMultiplied"><strong>getMultiplied</strong></a>(self, otherMatrix)</dt><dd><tt>Get this matrix multiplied by the other matrix.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Matrix4By4-setMatrixToZero"><strong>setMatrixToZero</strong></a>(self)</dt><dd><tt>Get the matrix elements to zero.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SphereObjectInfo">class <strong>SphereObjectInfo</strong></a>(<a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An Art of Illusion Sphere object info.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.import_plugins.xml.html#SphereObjectInfo">SphereObjectInfo</a></dd>
|
||||
<dd><a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a></dd>
|
||||
<dd><a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="SphereObjectInfo-setShape"><strong>setShape</strong></a>(self, matrix4By4)</dt><dd><tt>Set the shape of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.import_plugins.xml.html#CubeObjectInfo">CubeObjectInfo</a>:<br>
|
||||
<dl><dt><a name="SphereObjectInfo-setBottomTopTriangleMesh"><strong>setBottomTopTriangleMesh</strong></a>(self, edgeTriples, matrix4By4, vertexPairs, vertices)</dt><dd><tt>Set the bottom, top and triangle mesh of this carvable object info.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.import_plugins.xml.html#TriangleMeshObjectInfo">TriangleMeshObjectInfo</a>:<br>
|
||||
<dl><dt><a name="SphereObjectInfo-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set name to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SphereObjectInfo-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SphereObjectInfo-getLoops"><strong>getLoops</strong></a>(self, importRadius, z)</dt><dd><tt>Get loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SphereObjectInfo-getNewCarvableObjectInfo"><strong>getNewCarvableObjectInfo</strong></a>(self, objectInfoElement)</dt><dd><tt>Get new carvable object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SphereObjectInfo-getTransformAttributeTable"><strong>getTransformAttributeTable</strong></a>(self, coords, transformName)</dt><dd><tt>Get the transform attributes.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SphereObjectInfo-getVertices"><strong>getVertices</strong></a>(self)</dt><dd><tt>Get all vertices.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="TriangleMeshObjectInfo">class <strong>TriangleMeshObjectInfo</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An Art of Illusion object info.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set name to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-getLoops"><strong>getLoops</strong></a>(self, importRadius, z)</dt><dd><tt>Get loops sliced through shape.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-getNewCarvableObjectInfo"><strong>getNewCarvableObjectInfo</strong></a>(self, objectInfoElement)</dt><dd><tt>Get new carvable object info.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-getTransformAttributeTable"><strong>getTransformAttributeTable</strong></a>(self, coords, transformName)</dt><dd><tt>Get the transform attributes.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-getVertices"><strong>getVertices</strong></a>(self)</dt><dd><tt>Get all vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMeshObjectInfo-setShape"><strong>setShape</strong></a>(self, matrix4By4)</dt><dd><tt>Set the shape of this carvable object info.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="XMLCarving">class <strong>XMLCarving</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An svg carving.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="XMLCarving-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this carving.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-getCarveCornerMaximum"><strong>getCarveCornerMaximum</strong></a>(self)</dt><dd><tt>Get the corner maximum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-getCarveCornerMinimum"><strong>getCarveCornerMinimum</strong></a>(self)</dt><dd><tt>Get the corner minimum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-getCarveLayerThickness"><strong>getCarveLayerThickness</strong></a>(self)</dt><dd><tt>Get the layer thickness.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-getCarveRotatedBoundaryLayers"><strong>getCarveRotatedBoundaryLayers</strong></a>(self)</dt><dd><tt>Get the rotated boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-getExtruderPaths"><strong>getExtruderPaths</strong></a>(self, z)</dt><dd><tt>Get extruder loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-getZAddExtruderPaths"><strong>getZAddExtruderPaths</strong></a>(self, z)</dt><dd><tt>Get next z and add extruder loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-parseXML"><strong>parseXML</strong></a>(self, xmlText)</dt><dd><tt>Parse XML text and store the layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-setActualMinimumZ"><strong>setActualMinimumZ</strong></a>(self, halfHeight, layerTop)</dt><dd><tt>Get the actual minimum z at the lowest rotated boundary layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-setCarveBridgeLayerThickness"><strong>setCarveBridgeLayerThickness</strong></a>(self, bridgeLayerThickness)</dt><dd><tt>Set the bridge layer thickness. If the infill is not in the direction of the bridge, the bridge layer thickness should be given as None or not set at all.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-setCarveImportRadius"><strong>setCarveImportRadius</strong></a>(self, importRadius)</dt><dd><tt>Set the import radius.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-setCarveIsCorrectMesh"><strong>setCarveIsCorrectMesh</strong></a>(self, isCorrectMesh)</dt><dd><tt>Set the is correct mesh flag.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLCarving-setCarveLayerThickness"><strong>setCarveLayerThickness</strong></a>(self, layerThickness)</dt><dd><tt>Set the layer thickness.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addCarvableObjectInfo"><strong>addCarvableObjectInfo</strong></a>(carvableObjectInfos, objectInfoElement)</dt><dd><tt>Add the object info if it is carvable.</tt></dd></dl>
|
||||
<dl><dt><a name="-addCarvableObjectInfoWithMatrix"><strong>addCarvableObjectInfoWithMatrix</strong></a>(carvableObjectInfos, matrix4By4, objectInfoElement)</dt><dd><tt>Add the object info if it is carvable.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLineLoopsIntersections"><strong>addLineLoopsIntersections</strong></a>(loopLoopsIntersections, loops, pointBegin, pointEnd)</dt><dd><tt>Add intersections of the line with the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLineXSegmentIntersection"><strong>addLineXSegmentIntersection</strong></a>(lineLoopsIntersections, segmentFirstX, segmentSecondX, vector3First, vector3Second, y)</dt><dd><tt>Add intersections of the line with the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLoopLoopsIntersections"><strong>addLoopLoopsIntersections</strong></a>(loop, loopsLoopsIntersections, otherLoops)</dt><dd><tt>Add intersections of the loop with the other loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLoopXSegmentIntersections"><strong>addLoopXSegmentIntersections</strong></a>(lineLoopsIntersections, loop, segmentFirstX, segmentSecondX, segmentYMirror, y)</dt><dd><tt>Add intersections of the loop with the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLoopsXSegmentIntersections"><strong>addLoopsXSegmentIntersections</strong></a>(lineLoopsIntersections, loops, segmentFirstX, segmentSecondX, segmentYMirror, y)</dt><dd><tt>Add intersections of the loops with the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getBottom"><strong>getBottom</strong></a>(points)</dt><dd><tt>Get the bottom of the points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarvableClassObjectInfoTable"><strong>getCarvableClassObjectInfoTable</strong></a>()</dt><dd><tt>Get the carvable class object info table.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarvableObjectInfo"><strong>getCarvableObjectInfo</strong></a>(objectInfoElement)</dt><dd><tt>Get the object info if it is carvable.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarving"><strong>getCarving</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Get the carving for the xml file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInBetweenPointsFromLoops"><strong>getInBetweenPointsFromLoops</strong></a>(importRadius, loops)</dt><dd><tt>Get the in between points from loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInBetweenPointsFromLoopsBoundarySideOtherLoops"><strong>getInBetweenPointsFromLoopsBoundarySideOtherLoops</strong></a>(inside, importRadius, loops, otherLoops, radiusSide)</dt><dd><tt>Get the in between points from loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getJoinedList"><strong>getJoinedList</strong></a>(originalLists)</dt><dd><tt>Get the lists as one joined list.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsListsIntersections"><strong>getLoopsListsIntersections</strong></a>(loopsList)</dt><dd><tt>Get intersections betweens the loops lists.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsLoopsIntersections"><strong>getLoopsLoopsIntersections</strong></a>(loops, otherLoops)</dt><dd><tt>Get all the intersections of the loops with the other loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPointsBoundarySideLoops"><strong>getPointsBoundarySideLoops</strong></a>(inside, loops, points, radius)</dt><dd><tt>Get the points inside the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSubObjectInfoLoopsList"><strong>getSubObjectInfoLoopsList</strong></a>(importRadius, subObjectInfos, z)</dt><dd><tt>Get subObjectInfo loops list.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTop"><strong>getTop</strong></a>(points)</dt><dd><tt>Get the top of the points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTransformedByList"><strong>getTransformedByList</strong></a>(floatList, point)</dt><dd><tt>Get the point transformed by the array.</tt></dd></dl>
|
||||
<dl><dt><a name="-getValueInQuotes"><strong>getValueInQuotes</strong></a>(name, text, value)</dt><dd><tt>Get value in quotes after the name.</tt></dd></dl>
|
||||
<dl><dt><a name="-getVector3TransformedByMatrix"><strong>getVector3TransformedByMatrix</strong></a>(matrix, vector3)</dt><dd><tt>Get the vector3 multiplied by a vector3.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPointOrEitherBoundarySideInsideLoops"><strong>isPointOrEitherBoundarySideInsideLoops</strong></a>(inside, loops, pointBegin, pointCenter, pointEnd, radius)</dt><dd><tt>Determine if the point or a point on either side of the point, is inside the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPointOrEitherLineBoundarySideInsideLoops"><strong>isPointOrEitherLineBoundarySideInsideLoops</strong></a>(inside, loops, pointBegin, pointCenter, pointEnd, radius)</dt><dd><tt>Determine if the point or a point on either side of the point, is inside the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the inset dialog.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)<br>
|
||||
<strong>globalCarvableClassObjectInfoTable</strong> = {'CSGObject': CSGObjectObjectInfo, 'Cube': CubeObjectInfo, 'Cylinder': CylinderObjectInfo, 'Sphere': SphereObjectInfo, 'TriangleMesh': TriangleMeshObjectInfo}</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,186 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.inset</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.inset</strong></big></big> ($Date: 2008/28/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/inset.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/inset.py</a></font></td></tr></table>
|
||||
<p><tt>Inset is a script to inset the carvings of an svg file.<br>
|
||||
<br>
|
||||
Inset insets the svg slices into gcode extrusion layers. The 'Extrusion Perimeter Width over Thickness' ratio is the ratio of the<br>
|
||||
extrusion perimeter width over the layer thickness. The higher the value the more the perimeter will be inset, the default is 1.8.<br>
|
||||
<br>
|
||||
The 'Infill Perimeter Overlap' ratio is the amount the infill overlaps the perimeter over the extrusion width. The higher the value the<br>
|
||||
more the infill will overlap the perimeter, and the thicker join between the infill and the perimeter. If the value is too high, the join will<br>
|
||||
be so thick that the nozzle will run plow through the join below making a mess, the default is 0.05. There are two choices for the<br>
|
||||
infill perimeter overlap method of calculation. If the 'Calculate Overlap from Perimeter and Infill' option is chosen, the overlap will be<br>
|
||||
calculated from the average of the perimeter width and the infill width, this is the default choice. If the 'Calculate Overlap from<br>
|
||||
Perimeter Only' option is chosen, the overlap will be calculated from the perimeter width only.<br>
|
||||
<br>
|
||||
If the "Start at Home" preference is selected, the G28 gcode will be added at the beginning of the file, the default is off<br>
|
||||
<br>
|
||||
When inset is generating the code, if there is a file start.txt, it will add that to the very beginning of the gcode. After it has added some<br>
|
||||
initialization code and just before it adds the extrusion gcode, it will add the file endofthebeginning.txt if it exists. At the very end, it will<br>
|
||||
add the file end.txt if it exists. Carve does not care if the text file names are capitalized, but some file systems do not handle file name<br>
|
||||
cases properly, so to be on the safe side you should give them lower case names. It will first look for the file in the same directory as<br>
|
||||
inset, if it does not find it it will look in ~/.skeinforge/gcode_scripts.<br>
|
||||
<br>
|
||||
The following examples inset the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in<br>
|
||||
the folder which contains Screw Holder Bottom.stl and inset.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python inset.py<br>
|
||||
This brings up the dialog, after clicking 'Inset', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain insetted.<br>
|
||||
The insetted file is saved as Screw Holder Bottom_inset.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import inset<br>
|
||||
>>> inset.<a href="#-main">main</a>()<br>
|
||||
File Screw Holder Bottom.stl is being insetted.<br>
|
||||
The insetted file is saved as Screw Holder Bottom_inset.gcode<br>
|
||||
It took 3 seconds to inset the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> inset.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
File Screw Holder Bottom.stl is being insetted.<br>
|
||||
The insetted file is saved as Screw Holder Bottom_inset.gcode<br>
|
||||
It took 3 seconds to inset the file.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.carve.html">skeinforge_tools.carve</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="os.html">os</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.inset.html#InsetPreferences">InsetPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.inset.html#InsetSkein">InsetSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="InsetPreferences">class <strong>InsetPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the inset preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="InsetPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Inset button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="InsetSkein">class <strong>InsetSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to inset a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="InsetSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addFromUpperLowerFile"><strong>addFromUpperLowerFile</strong></a>(self, fileName)</dt><dd><tt>Add lines of text from the fileName or the lowercase fileName, if there is no file by the original fileName in the directory.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addGcodeFromPerimeterPaths"><strong>addGcodeFromPerimeterPaths</strong></a>(self, isIntersectingSelf, loop, loopLists, radius, z)</dt><dd><tt>Add the perimeter paths to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addGcodeFromRemainingLoop"><strong>addGcodeFromRemainingLoop</strong></a>(self, loop, loopLists, radius, z)</dt><dd><tt>Add the remainder of the loop which does not overlap the alreadyFilledArounds loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addGcodeFromThreadZ"><strong>addGcodeFromThreadZ</strong></a>(self, thread, z)</dt><dd><tt>Add a thread to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addGcodeMovementZ"><strong>addGcodeMovementZ</strong></a>(self, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addInitializationToOutput"><strong>addInitializationToOutput</strong></a>(self)</dt><dd><tt>Add initialization gcode to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addInset"><strong>addInset</strong></a>(self, rotatedBoundaryLayer)</dt><dd><tt>Add inset to the carve layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addPathData"><strong>addPathData</strong></a>(self, line)</dt><dd><tt>Add the data from the path line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addRotatedLoopLayer"><strong>addRotatedLoopLayer</strong></a>(self, z)</dt><dd><tt>Add rotated loop layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addShutdownToOutput"><strong>addShutdownToOutput</strong></a>(self)</dt><dd><tt>Add shutdown gcode to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-addTextData"><strong>addTextData</strong></a>(self, line)</dt><dd><tt>Add the data from the text line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-getExtrudateLoops"><strong>getExtrudateLoops</strong></a>(self, halfWidth, loop)</dt><dd><tt>Get the inset extrudate loops from the loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-parseGcode"><strong>parseGcode</strong></a>(self, insetPreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="InsetSkein-parseLine"><strong>parseLine</strong></a>(self, lineIndex)</dt><dd><tt>Parse a gcode line and add it to the inset skein.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addAlreadyFilledArounds"><strong>addAlreadyFilledArounds</strong></a>(alreadyFilledArounds, loop, radius)</dt><dd><tt>Add already filled loops around loop to alreadyFilledArounds.</tt></dd></dl>
|
||||
<dl><dt><a name="-addSegmentOutline"><strong>addSegmentOutline</strong></a>(isThick, outlines, pointBegin, pointEnd, width)</dt><dd><tt>Add a diamond or hexagonal outline for a line segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInsetChainGcode"><strong>getInsetChainGcode</strong></a>(fileName, gcodeText, insetPreferences<font color="#909090">=None</font>)</dt><dd><tt>Inset the carves of a gcode text. Chain inset the gcode if it is not already carved.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInsetGcode"><strong>getInsetGcode</strong></a>(gcodeText, insetPreferences<font color="#909090">=None</font>)</dt><dd><tt>Inset the carves of a gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSegmentsFromPoints"><strong>getSegmentsFromPoints</strong></a>(aroundLists, loopLists, pointBegin, pointEnd)</dt><dd><tt>Get endpoint segments from the beginning and end of a line segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-isCloseToLast"><strong>isCloseToLast</strong></a>(paths, point, radius)</dt><dd><tt>Determine if the point is close to the last point of the last path.</tt></dd></dl>
|
||||
<dl><dt><a name="-isIntersectingItself"><strong>isIntersectingItself</strong></a>(loop, width)</dt><dd><tt>Determine if the loop is intersecting itself.</tt></dd></dl>
|
||||
<dl><dt><a name="-isIntersectingWithinList"><strong>isIntersectingWithinList</strong></a>(loop, loopList)</dt><dd><tt>Determine if the loop is intersecting or is within the loop list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isIntersectingWithinLists"><strong>isIntersectingWithinLists</strong></a>(loop, loopLists)</dt><dd><tt>Determine if the loop is intersecting or is within the loop lists.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSegmentInsideAround"><strong>isSegmentInsideAround</strong></a>(aroundLists, segment)</dt><dd><tt>Determine if the segment is inside an around.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the inset dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Inset the carves of a gcode file. Chain carve the file if it is a GNU TriangulatedSurface file. If no fileName is specified, inset the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/28/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,90 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.material</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.material</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/material.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/material.py</a></font></td></tr></table>
|
||||
<p><tt>Material is a script to set the material preference for the skeinforge chain.<br>
|
||||
<br>
|
||||
To change the material preference, in a shell in the material folder type:<br>
|
||||
> python material.py<br>
|
||||
<br>
|
||||
An example of using material from the python interpreter follows below.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import material<br>
|
||||
>>> material.<a href="#-main">main</a>()<br>
|
||||
This brings up the material preference dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> material.<a href="#-getSelectedMaterial">getSelectedMaterial</a>()<br>
|
||||
ABS</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.material.html#MaterialPreferences">MaterialPreferences</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="MaterialPreferences">class <strong>MaterialPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the material preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="MaterialPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getSelectedMaterial"><strong>getSelectedMaterial</strong></a>()</dt><dd><tt>Get the selected material.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the material dialog.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,175 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.multiply</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.multiply</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/multiply.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/multiply.py</a></font></td></tr></table>
|
||||
<p><tt>Multiply is a script to multiply the shape into an array of copies arranged in a table.<br>
|
||||
<br>
|
||||
The default 'Activate Multiply' checkbox is on. When it is on, the functions described below will work, when it is off, the<br>
|
||||
functions will not be called. The multiply script sets the feedrate, and flowrate. To run multiply, in a shell type:<br>
|
||||
> python multiply.py<br>
|
||||
<br>
|
||||
The center of the shape will be moved to the "Center X" and "Center Y" coordinates.<br>
|
||||
<br>
|
||||
The "Number of Columns" preference is the number of columns in the array table. The "Number of Rows" is the number of rows<br>
|
||||
in the table. The "Separation over Extrusion Width" is the ratio of separation between the shape copies over the extrusion width.<br>
|
||||
<br>
|
||||
The following examples multiply the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and multiply.py. The multiply function will multiply if "Activate<br>
|
||||
Multiply" is true, which can be set in the dialog or by changing the preferences file 'multiply.csv' with a text editor or a<br>
|
||||
spreadsheet program set to separate tabs. The functions writeOutput and getMultiplyChainGcode check to see if the text has<br>
|
||||
been multiplied, if not they call getFillChainGcode in fill.py to get filled gcode; once they have the filled text, then they multiply.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python multiply.py<br>
|
||||
This brings up the dialog, after clicking 'Multiply', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain multiplied.<br>
|
||||
The multiplied file is saved as Screw Holder Bottom_multiply.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import multiply<br>
|
||||
>>> multiply.<a href="#-main">main</a>()<br>
|
||||
This brings up the multiply dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> multiply.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain multiplied.<br>
|
||||
The multiplied file is saved as Screw Holder Bottom_multiply.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> multiply.<a href="#-getMultiplyGcode">getMultiplyGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> multiply.<a href="#-getMultiplyChainGcode">getMultiplyChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.fill.html">skeinforge_tools.fill</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.material.html">skeinforge_tools.material</a><br>
|
||||
<a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.multiply.html#MultiplyPreferences">MultiplyPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.multiply.html#MultiplySkein">MultiplySkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="MultiplyPreferences">class <strong>MultiplyPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the multiply preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="MultiplyPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplyPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Multiply button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="MultiplySkein">class <strong>MultiplySkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to multiply a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="MultiplySkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-addElement"><strong>addElement</strong></a>(self, offset)</dt><dd><tt>Add moved element to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-addLayer"><strong>addLayer</strong></a>(self)</dt><dd><tt>Add multiplied layer to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-getGcodeFromMovementZ"><strong>getGcodeFromMovementZ</strong></a>(self, point, z)</dt><dd><tt>Get a gcode movement.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-getMovedLocationSetOldLocation"><strong>getMovedLocationSetOldLocation</strong></a>(self, offset, splitLine)</dt><dd><tt>Get the moved location and set the old location.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, multiplyPreferences)</dt><dd><tt>Parse gcode text and store the multiply gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the multiply skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="MultiplySkein-setCorners"><strong>setCorners</strong></a>(self)</dt><dd><tt>Set maximum and minimum corners and z.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getMultiplyChainGcode"><strong>getMultiplyChainGcode</strong></a>(fileName, gcodeText, multiplyPreferences<font color="#909090">=None</font>)</dt><dd><tt>Multiply a gcode linear move text. Chain multiply the gcode if it is not already multiplied.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMultiplyGcode"><strong>getMultiplyGcode</strong></a>(gcodeText, multiplyPreferences<font color="#909090">=None</font>)</dt><dd><tt>Multiply a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the multiply dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Multiply a gcode linear move file. Chain multiply the gcode if it is not already multiplied.<br>
|
||||
If no fileName is specified, multiply the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,238 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.oozebane</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.oozebane</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/oozebane.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/oozebane.py</a></font></td></tr></table>
|
||||
<p><tt>Oozebane is a script to turn off the extruder before the end of a thread and turn it on before the beginning.<br>
|
||||
<br>
|
||||
The default 'Activate Oozebane' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
The important value for the oozebane preferences is "Early Shutdown Distance" which is the distance before the end of the thread<br>
|
||||
that the extruder will be turned off, the default is 1.2. A higher distance means the extruder will turn off sooner and the end of the<br>
|
||||
line will be thinner.<br>
|
||||
<br>
|
||||
When oozebane turns the extruder off, it slows the feedrate down in steps so in theory the thread will remain at roughly the same<br>
|
||||
thickness until the end. The "Turn Off Steps" preference is the number of steps, the more steps the smaller the size of the step that<br>
|
||||
the feedrate will be decreased and the larger the size of the resulting gcode file, the default is three.<br>
|
||||
<br>
|
||||
Oozebane also turns the extruder on just before the start of a thread. The "Early Startup Maximum Distance" preference is the<br>
|
||||
maximum distance before the thread starts that the extruder will be turned off, the default is 1.2. The longer the extruder has been<br>
|
||||
off, the earlier the extruder will turn back on, the ratio is one minus one over e to the power of the distance the extruder has been<br>
|
||||
off over the "Early Startup Distance Constant". The 'First Early Startup Distance' preference is the distance before the first thread<br>
|
||||
starts that the extruder will be turned off. This value should be high because, according to Marius, the extruder takes a second or<br>
|
||||
two to extrude when starting for the first time, the default is twenty five.<br>
|
||||
<br>
|
||||
When oozebane reaches the point where the extruder would of turned on, it slows down so that the thread will be thick at that point.<br>
|
||||
Afterwards it speeds the extruder back up to operating speed. The speed up distance is the "After Startup Distance".<br>
|
||||
<br>
|
||||
The "Minimum Distance for Early Startup" is the minimum distance that the extruder has to be off before the thread begins for the<br>
|
||||
early start up feature to activate. The "Minimum Distance for Early Shutdown" is the minimum distance that the extruder has to be<br>
|
||||
off after the thread end for the early shutdown feature to activate.<br>
|
||||
<br>
|
||||
After oozebane turns the extruder on, it slows the feedrate down where the thread starts. Then it speeds it up in steps so in theory<br>
|
||||
the thread will remain at roughly the same thickness from the beginning.<br>
|
||||
<br>
|
||||
To run oozebane, in a shell which oozebane is in type:<br>
|
||||
> python oozebane.py<br>
|
||||
<br>
|
||||
The following examples oozebane the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and oozebane.py. The oozebane function will oozebane if the<br>
|
||||
'Activate Oozebane' checkbox is on. The functions writeOutput and getOozebaneChainGcode check to see if the text has been<br>
|
||||
oozebaned, if not they call the getWipeChainGcode in wipe.py to nozzle wipe the text; once they have the nozzle<br>
|
||||
wiped text, then they oozebane.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python oozebane.py<br>
|
||||
This brings up the dialog, after clicking 'Oozebane', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain oozebaned.<br>
|
||||
The oozebaned file is saved as Screw Holder Bottom_oozebane.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python oozebane.py Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain oozebaned.<br>
|
||||
The oozebaned file is saved as Screw Holder Bottom_oozebane.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import oozebane<br>
|
||||
>>> oozebane.<a href="#-main">main</a>()<br>
|
||||
This brings up the oozebane dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> oozebane.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
File Screw Holder Bottom.stl is being chain oozebaned.<br>
|
||||
The oozebaned file is saved as Screw Holder Bottom_oozebane.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> oozebane.<a href="#-getOozebaneGcode">getOozebaneGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> oozebane.<a href="#-getOozebaneChainGcode">getOozebaneChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
<a href="skeinforge_tools.wipe.html">skeinforge_tools.wipe</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.oozebane.html#OozebanePreferences">OozebanePreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.oozebane.html#OozebaneSkein">OozebaneSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="OozebanePreferences">class <strong>OozebanePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the oozebane preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="OozebanePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebanePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Oozebane button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="OozebaneSkein">class <strong>OozebaneSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to oozebane a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="OozebaneSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-addAfterStartupLine"><strong>addAfterStartupLine</strong></a>(self, splitLine)</dt><dd><tt>Add the after startup lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-addLineSetShutdowns"><strong>addLineSetShutdowns</strong></a>(self, line)</dt><dd><tt>Add a line and set the shutdown variables.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getActiveFeedrateRatio"><strong>getActiveFeedrateRatio</strong></a>(self)</dt><dd><tt>Get the feedrate of the first active move over the operating feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getAddAfterStartupLines"><strong>getAddAfterStartupLines</strong></a>(self, line)</dt><dd><tt>Get and / or add after the startup lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getAddBeforeStartupLines"><strong>getAddBeforeStartupLines</strong></a>(self, line)</dt><dd><tt>Get and / or add before the startup lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getAddShutSlowDownLine"><strong>getAddShutSlowDownLine</strong></a>(self, line)</dt><dd><tt>Add the shutdown and slowdown lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getAddShutSlowDownLines"><strong>getAddShutSlowDownLines</strong></a>(self, line)</dt><dd><tt>Get and / or add the shutdown and slowdown lines.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getDistanceAfterThreadBeginning"><strong>getDistanceAfterThreadBeginning</strong></a>(self)</dt><dd><tt>Get the distance after the beginning of the thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getDistanceToExtruderOffCommand"><strong>getDistanceToExtruderOffCommand</strong></a>(self, remainingDistance)</dt><dd><tt>Get the distance to the word.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getDistanceToThreadBeginning"><strong>getDistanceToThreadBeginning</strong></a>(self)</dt><dd><tt>Get the distance to the beginning of the thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getDistanceToThreadBeginningAfterThreadEnd"><strong>getDistanceToThreadBeginningAfterThreadEnd</strong></a>(self, remainingDistance)</dt><dd><tt>Get the distance to the thread beginning after the end of this thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getDistanceToThreadEnd"><strong>getDistanceToThreadEnd</strong></a>(self)</dt><dd><tt>Get the distance to the end of the thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getLinearMoveWithFeedrate"><strong>getLinearMoveWithFeedrate</strong></a>(self, feedrate, location)</dt><dd><tt>Get a linear move line with the feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getLinearMoveWithFeedrateSplitLine"><strong>getLinearMoveWithFeedrateSplitLine</strong></a>(self, feedrate, splitLine)</dt><dd><tt>Get a linear move line with the feedrate and split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getOozebaneLine"><strong>getOozebaneLine</strong></a>(self, line)</dt><dd><tt>Get oozebaned gcode line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getShutdownFlowRateMultiplier"><strong>getShutdownFlowRateMultiplier</strong></a>(self, along, numberOfDistances)</dt><dd><tt>Get the shut down flow rate multipler.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-getStartupFlowRateMultiplier"><strong>getStartupFlowRateMultiplier</strong></a>(self, along, numberOfDistances)</dt><dd><tt>Get the startup flow rate multipler.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-isClose"><strong>isClose</strong></a>(self, location, otherLocation)</dt><dd><tt>Determine if the location is close to the other location.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-isCloseToEither"><strong>isCloseToEither</strong></a>(self, location, otherLocationFirst, otherLocationSecond)</dt><dd><tt>Determine if the location is close to the other locations.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-isDistanceAfterThreadBeginningGreater"><strong>isDistanceAfterThreadBeginningGreater</strong></a>(self)</dt><dd><tt>Determine if the distance after the thread beginning is greater than the step index after startup distance.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, oozebanePreferences)</dt><dd><tt>Parse gcode text and store the oozebane gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, oozebanePreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-setAfterStartupFlowRates"><strong>setAfterStartupFlowRates</strong></a>(self, afterStartupRatio)</dt><dd><tt>Set the after startup flow rates.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-setEarlyShutdown"><strong>setEarlyShutdown</strong></a>(self)</dt><dd><tt>Set the early shutdown variables.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-setEarlyShutdownFlowRates"><strong>setEarlyShutdownFlowRates</strong></a>(self, earlyShutdownRatio)</dt><dd><tt>Set the extrusion width.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-setEarlyStartupDistance"><strong>setEarlyStartupDistance</strong></a>(self, splitLine)</dt><dd><tt>Set the early startup distance.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="OozebaneSkein-setExtrusionWidth"><strong>setExtrusionWidth</strong></a>(self, oozebanePreferences)</dt><dd><tt>Set the extrusion width.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getOozebaneChainGcode"><strong>getOozebaneChainGcode</strong></a>(fileName, gcodeText, oozebanePreferences<font color="#909090">=None</font>)</dt><dd><tt>Oozebane a gcode linear move text. Chain oozebane the gcode if it is not already oozebaned.</tt></dd></dl>
|
||||
<dl><dt><a name="-getOozebaneGcode"><strong>getOozebaneGcode</strong></a>(gcodeText, oozebanePreferences<font color="#909090">=None</font>)</dt><dd><tt>Oozebane a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the oozebane dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Oozebane a gcode linear move file. Chain oozebane the gcode if it is not already oozebaned. If no fileName is specified, oozebane the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,98 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.polyfile</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.polyfile</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/polyfile.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/polyfile.py</a></font></td></tr></table>
|
||||
<p><tt>Polyfile is a script to choose whether the skeinforge toolchain will operate on one file or all the files in a directory.<br>
|
||||
<br>
|
||||
Polyfile stores and lets the user change the preference of whether to operate on one file or all the files in a directory. The default<br>
|
||||
'Polyfile Choice' radio button group choice is 'Execute File'. With 'Execute File' chosen, the toolchain will operate on only the<br>
|
||||
chosen file. When the chosen choice is 'Execute All Unmodified Files in a Directory', the toolchain will operate on all the<br>
|
||||
unmodifed files in the directory that the chosen file is in. To use the dialog to change the polyfile<br>
|
||||
preferences, in a shell type:<br>
|
||||
> python polyfile.py<br>
|
||||
<br>
|
||||
Polyfile examples follow below.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import polyfile<br>
|
||||
>>> polyfile.<a href="#-main">main</a>()<br>
|
||||
This brings up the polyfile preference dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> polyfile.<a href="#-isDirectoryPreference">isDirectoryPreference</a>()<br>
|
||||
This returns true if 'Execute All Unmodified Files in a Directory' is chosen and returns false if 'Execute File' is chosen.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.polyfile.html#PolyfilePreferences">PolyfilePreferences</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="PolyfilePreferences">class <strong>PolyfilePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the polyfile preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="PolyfilePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getFileOrDirectoryTypes"><strong>getFileOrDirectoryTypes</strong></a>(fileName, fileTypes, wasCancelled)</dt><dd><tt>Get the gcode files in the directory the file is in if directory preference is true. Otherwise, return the file in a list.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileOrDirectoryTypesUnmodifiedGcode"><strong>getFileOrDirectoryTypesUnmodifiedGcode</strong></a>(fileName, fileTypes, wasCancelled)</dt><dd><tt>Get the gcode files in the directory the file is in if directory preference is true. Otherwise, return the file in a list.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileOrGcodeDirectory"><strong>getFileOrGcodeDirectory</strong></a>(fileName, wasCancelled, words<font color="#909090">=[]</font>)</dt><dd><tt>Get the gcode files in the directory the file is in if directory preference is true. Otherwise, return the file in a list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isDirectoryPreference"><strong>isDirectoryPreference</strong></a>()</dt><dd><tt>Determine if the directory preference is true.</tt></dd></dl>
|
||||
<dl><dt><a name="-isEmptyOrCancelled"><strong>isEmptyOrCancelled</strong></a>(fileName, wasCancelled)</dt><dd><tt>Determine if the fileName is empty or the dialog was cancelled.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the file or directory dialog.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,278 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.raft</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.raft</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/raft.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/raft.py</a></font></td></tr></table>
|
||||
<p><tt>Raft is a script to create a reusable raft, elevate the nozzle and set the temperature.<br>
|
||||
<br>
|
||||
The default 'Activate Raft' checkbox is on. When it is on, the functions described below will work, when it is off, the<br>
|
||||
functions will not be called. The raft script sets the temperature. If the "Activate Raft, Elevate Nozzle, Orbit and Set<br>
|
||||
Altitude" checkbox is checked, the script will also create a raft, elevate the nozzle, orbit and set the altitude of the bottom<br>
|
||||
of the raft.<br>
|
||||
<br>
|
||||
Raft is based on the Nophead's reusable raft, which has a base layer running one way, and a couple of perpendicular layers<br>
|
||||
above. Each set of layers can be set to a different temperature. There is the option of having the extruder orbit the raft for a<br>
|
||||
while, so the heater barrel has time to reach a different temperature, without ooze accumulating around the nozzle. To run<br>
|
||||
raft, in a shell type:<br>
|
||||
> python raft.py<br>
|
||||
<br>
|
||||
The important values for the raft preferences are the temperatures of the raft, the first layer and the next layers. These will be<br>
|
||||
different for each material. The default preferences for ABS, HDPE, PCL & PLA are extrapolated from Nophead's<br>
|
||||
experiments. To change the material, in a shell type:<br>
|
||||
> python material.py<br>
|
||||
<br>
|
||||
This brings up the material preferences dialog. In that dialog you can add or delete a material on the listbox and you change<br>
|
||||
the selected material. After you can change the selected material, run raft again. If there are preferences for the new material,<br>
|
||||
those will be in the raft dialog. If there are no preferences for the new material, the preferences will be set to defaults and you<br>
|
||||
will have to set new preferences for the new material.<br>
|
||||
<br>
|
||||
The "Base Infill Density" preference is the infill density ratio of the base of the raft, the default ratio is half. The "Base Layer<br>
|
||||
Height over Layer Thickness" preference is the ratio of the height & width of the base layer compared to the height and width<br>
|
||||
of the shape infill, the default is two. The feedrate will be slower for raft layers which have thicker extrusions than the shape<br>
|
||||
infill. The "Base Layers" preference is the number of base layers, the default is one. The "Base Nozzle Lift over Half Base<br>
|
||||
Layer Thickness" is the amount the nozzle is above the center of the extrusion divided by half the base layer thickness.<br>
|
||||
<br>
|
||||
The interface of the raft has equivalent preferences called "Interface Infill Density", "Interface Layer Thickness over Extrusion<br>
|
||||
Height", "Interface Layers" and "Interface Nozzle Lift over Half Base Layer Thickness". The shape has the equivalent<br>
|
||||
preference of called "Operating Nozzle Lift over Half Layer Thickness".<br>
|
||||
<br>
|
||||
The altitude that the bottom of the raft will be set to the "Bottom Altitude" preference.<br>
|
||||
<br>
|
||||
The raft fills a rectangle whose size is the rectangle around the bottom layer of the shape expanded on each side by the<br>
|
||||
"Raft Outset Radius over Extrusion Width" preference times the extrusion width, minus the "Infill Overhang" ratio times the<br>
|
||||
width of the extrusion of the raft.<br>
|
||||
<br>
|
||||
In the "Support Material Choice" radio button group, if "No Support Material" is selected then raft will not add support<br>
|
||||
material, this is the default because the raft takes time to generate. If "Support Material Everywhere" is selected, support<br>
|
||||
material will be added wherever there are overhangs, even inside the object; because support material inside objects is hard<br>
|
||||
or impossible to remove, this option should only be chosen if the shape has a cavity that needs support and there is some<br>
|
||||
way to extract the support material. If "Support Material on Exterior Only" is selected, support material will be added only<br>
|
||||
the exterior of the object; this is the best option for most objects which require support material. The "Support Minimum<br>
|
||||
Angle" preference is the minimum angle that a surface overhangs before support material is added, the default is sixty<br>
|
||||
degrees. The "Support Inset over Perimeter Extrusion Width" is the amount that the support material is inset into the object<br>
|
||||
over the perimeter extrusion width, the default is zero.<br>
|
||||
<br>
|
||||
The extruder will orbit for at least "Temperature Change Time Before Raft" seconds before extruding the raft. It will orbit for<br>
|
||||
at least "Temperature Change Time Before First Layer Outline" seconds before extruding the outline of the first layer of the<br>
|
||||
shape. It will orbit for at least "Temperature Change Time Before Next Threads" seconds before extruding within the outline<br>
|
||||
of the first layer of the shape and before extruding the next layers of the shape. It will orbit for at least "Temperature<br>
|
||||
Change Time Before Support Layers" seconds before extruding the support layers. It will orbit for at least "Temperature<br>
|
||||
Change Time Before Supported Layers" seconds before extruding the layer of the shape above the support layer. If a time<br>
|
||||
is zero, it will not orbit.<br>
|
||||
<br>
|
||||
The "Temperature of Raft" preference sets the temperature of the raft. The "Temperature of Shape First Layer Outline"<br>
|
||||
preference sets the temperature of the outline of the first layer of the shape. The "Temperature of Shape First Layer Within"<br>
|
||||
preference sets the temperature within the outline of the first layer of the shape. The "Temperature of Shape Next Layers"<br>
|
||||
preference sets the temperature of the next layers of the shape. The "Temperature of Support Layers" preference sets the<br>
|
||||
temperature of the support layer. The "Temperature of Supported Layers" preference sets the temperature of the layer of the<br>
|
||||
shape above the support layer.<br>
|
||||
<br>
|
||||
The following examples raft the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the folder<br>
|
||||
which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and raft.py. The raft function will raft if "Activate Raft, Elevate Nozzle,<br>
|
||||
Orbit and Set Altitude" is true, which can be set in the dialog or by changing the preferences file 'raft.csv' with a text editor or a<br>
|
||||
spreadsheet program set to separate tabs. The functions writeOutput and getRaftChainGcode check to see if the text has<br>
|
||||
been rafted, if not they call getSpeedChainGcode in speed.py to get speeded gcode; once they have the speeded text, then<br>
|
||||
they raft. Pictures of rafting in action are available from the Metalab blog at:<br>
|
||||
<a href="http://reprap.soup.io/?search=rafting">http://reprap.soup.io/?search=rafting</a><br>
|
||||
<br>
|
||||
<br>
|
||||
> python raft.py<br>
|
||||
This brings up the dialog, after clicking 'Raft', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain rafted.<br>
|
||||
The rafted file is saved as Screw Holder Bottom_raft.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import raft<br>
|
||||
>>> raft.<a href="#-main">main</a>()<br>
|
||||
This brings up the raft dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> raft.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain rafted.<br>
|
||||
The rafted file is saved as Screw Holder Bottom_raft.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> raft.<a href="#-getRaftGcode">getRaftGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> raft.<a href="#-getRaftChainGcode">getRaftChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="skeinforge_tools.material.html">skeinforge_tools.material</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="skeinforge_tools.speed.html">skeinforge_tools.speed</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.raft.html#RaftPreferences">RaftPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.raft.html#RaftSkein">RaftSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="RaftPreferences">class <strong>RaftPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the raft preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="RaftPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Raft button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="RaftSkein">class <strong>RaftSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to raft a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="RaftSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addBaseLayer"><strong>addBaseLayer</strong></a>(self, baseExtrusionWidth, baseStep, stepBegin, stepEnd)</dt><dd><tt>Add a base layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addGcodeFromFeedrateMovementZ"><strong>addGcodeFromFeedrateMovementZ</strong></a>(self, feedrateMinute, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addGcodeFromFeedrateThreadZ"><strong>addGcodeFromFeedrateThreadZ</strong></a>(self, feedrateMinute, thread, z)</dt><dd><tt>Add a thread to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addInterfaceLayer"><strong>addInterfaceLayer</strong></a>(self)</dt><dd><tt>Add an interface layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addLayerFromSegments"><strong>addLayerFromSegments</strong></a>(self, feedrateMinute, layerLayerThickness, segments, z)</dt><dd><tt>Add a layer from segments and raise the extrusion top.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addLayerLine"><strong>addLayerLine</strong></a>(self, z)</dt><dd><tt>Add the layer gcode line and close the last layer gcode block.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addRaft"><strong>addRaft</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addSupportLayerTemperature"><strong>addSupportLayerTemperature</strong></a>(self, supportSegments, z)</dt><dd><tt>Add support layer and temperature before the object layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addSupportSegmentTable"><strong>addSupportSegmentTable</strong></a>(self, layerIndex)</dt><dd><tt>Add support segments from the boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addTemperature"><strong>addTemperature</strong></a>(self, temperature)</dt><dd><tt>Add a line of temperature.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addTemperatureOrbits"><strong>addTemperatureOrbits</strong></a>(self, segments, temperaturePreference, temperatureTimeChangePreference, z)</dt><dd><tt>Add the temperature and orbits around the support layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-addToFillXIntersectionIndexTables"><strong>addToFillXIntersectionIndexTables</strong></a>(self, fillXIntersectionIndexTables, layerIndex)</dt><dd><tt>Add fill segments from the boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-extendSegments"><strong>extendSegments</strong></a>(self, supportSegmentTable)</dt><dd><tt>Extend the support segments.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-getBoundaryLine"><strong>getBoundaryLine</strong></a>(self, splitLine)</dt><dd><tt>Get elevated boundary gcode line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-getGcodeFromFeedrateMovementZ"><strong>getGcodeFromFeedrateMovementZ</strong></a>(self, feedrateMinute, point, z)</dt><dd><tt>Get a gcode movement.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-getRaftedLine"><strong>getRaftedLine</strong></a>(self, splitLine)</dt><dd><tt>Get elevated gcode line with operating feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-getStepsUntilEnd"><strong>getStepsUntilEnd</strong></a>(self, begin, end, stepSize)</dt><dd><tt>Get steps from the beginning until the end.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-getSupportSegments"><strong>getSupportSegments</strong></a>(self)</dt><dd><tt>Get the support layer segments.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-joinSegments"><strong>joinSegments</strong></a>(self, supportSegmentTableIndex)</dt><dd><tt>Join the support segments of this layer with those of the layer above.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, raftPreferences)</dt><dd><tt>Parse gcode text and store the raft gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the raft skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-setBoundaryLayers"><strong>setBoundaryLayers</strong></a>(self)</dt><dd><tt>Set the boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-setCornersZ"><strong>setCornersZ</strong></a>(self)</dt><dd><tt>Set maximum and minimum corners and z.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-setInterfaceVariables"><strong>setInterfaceVariables</strong></a>(self, interfaceExtrusionWidth, stepBegin, stepEnd)</dt><dd><tt>Set the interface variables.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-subtractJoinedFill"><strong>subtractJoinedFill</strong></a>(self, fillXIntersectionIndexTables, supportSegmentTableIndex)</dt><dd><tt>Join the fill then subtract it from the support layer table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RaftSkein-truncateSupportSegmentTables"><strong>truncateSupportSegmentTables</strong></a>(self)</dt><dd><tt>Truncate the support segments after the last support segment which contains elements.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addXIntersectionsFromSegment"><strong>addXIntersectionsFromSegment</strong></a>(index, segment, xIntersectionIndexList)</dt><dd><tt>Add the x intersections from the segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-addXIntersectionsFromSegments"><strong>addXIntersectionsFromSegments</strong></a>(index, segments, xIntersectionIndexList)</dt><dd><tt>Add the x intersections from the segments.</tt></dd></dl>
|
||||
<dl><dt><a name="-getEndpointsFromSegments"><strong>getEndpointsFromSegments</strong></a>(segments)</dt><dd><tt>Get the endpoints from the segments.</tt></dd></dl>
|
||||
<dl><dt><a name="-getExtendedLineSegment"><strong>getExtendedLineSegment</strong></a>(extensionDistance, lineSegment)</dt><dd><tt>Add shortened line segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFillXIntersectionIndexes"><strong>getFillXIntersectionIndexes</strong></a>(fillLoops, y)</dt><dd><tt>Get fill x intersection indexes inside loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getHorizontalSegments"><strong>getHorizontalSegments</strong></a>(fillLoops, alreadyFilledArounds, y)</dt><dd><tt>Get horizontal segments inside loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getJoinOfXIntersectionIndexes"><strong>getJoinOfXIntersectionIndexes</strong></a>(xIntersectionIndexList)</dt><dd><tt>Get x intersections from surrounding layers.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRaftChainGcode"><strong>getRaftChainGcode</strong></a>(fileName, gcodeText, raftPreferences<font color="#909090">=None</font>)</dt><dd><tt>Raft a gcode linear move text. Chain raft the gcode if it is not already rafted.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRaftGcode"><strong>getRaftGcode</strong></a>(gcodeText, raftPreferences<font color="#909090">=None</font>)</dt><dd><tt>Raft a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSquareLoop"><strong>getSquareLoop</strong></a>(beginComplex, endComplex)</dt><dd><tt>Get a square loop from the beginning to the end and back.</tt></dd></dl>
|
||||
<dl><dt><a name="-joinSegmentTables"><strong>joinSegmentTables</strong></a>(fromTable, intoTable)</dt><dd><tt>Join both segment tables and put the join into the intoTable.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the raft dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-subtractFill"><strong>subtractFill</strong></a>(fillXIntersectionIndexTable, supportSegmentLayerTable)</dt><dd><tt>Subtract fill from the support layer table.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Raft a gcode linear move file. Chain raft the gcode if it is not already rafted.<br>
|
||||
If no fileName is specified, raft the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,314 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.euclidean</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.euclidean</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/euclidean.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/euclidean.py</a></font></td></tr></table>
|
||||
<p><tt>Euclidean is a collection of python utilities for complex numbers, paths, polygons & Vector3s.<br>
|
||||
<br>
|
||||
To use euclidean, install python 2.x on your machine, which is avaliable from <a href="http://www.python.org/download/">http://www.python.org/download/</a><br>
|
||||
<br>
|
||||
Then in the folder which euclidean is in, type 'python' in a shell to run the python interpreter. Finally type<br>
|
||||
'import euclidean' to import these utilities and 'from vector3 import Vector3' to import the Vector3 class.<br>
|
||||
<br>
|
||||
<br>
|
||||
Below are examples of euclidean use.<br>
|
||||
<br>
|
||||
>>> from euclidean import *<br>
|
||||
>>> origin=complex()<br>
|
||||
>>> right=complex(1.0,0.0)<br>
|
||||
>>> back=complex(0.0,1.0)<br>
|
||||
>>> <a href="#-getMaximum">getMaximum</a>(right,back)<br>
|
||||
1.0, 1.0<br>
|
||||
>>> polygon=[origin, right, back]<br>
|
||||
>>> <a href="#-getPolygonLength">getPolygonLength</a>(polygon)<br>
|
||||
3.4142135623730949<br>
|
||||
>>> <a href="#-getPolygonArea">getPolygonArea</a>(polygon)<br>
|
||||
0.5</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#DistanceIndex">DistanceIndex</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#Endpoint">Endpoint</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#LoopLayer">LoopLayer</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#PathZ">PathZ</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#RotatedLoopLayer">RotatedLoopLayer</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#SurroundingLoop">SurroundingLoop</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.euclidean.html#XIntersectionIndex">XIntersectionIndex</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="DistanceIndex">class <strong>DistanceIndex</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to hold the distance and the index of the loop.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="DistanceIndex-__init__"><strong>__init__</strong></a>(self, distance, index)</dt></dl>
|
||||
|
||||
<dl><dt><a name="DistanceIndex-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this distance index.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Endpoint">class <strong>Endpoint</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>The endpoint of a segment.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Endpoint-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Endpoint">Endpoint</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Endpoint-getFromOtherPoint"><strong>getFromOtherPoint</strong></a>(self, otherEndpoint, point)</dt><dd><tt>Initialize from other endpoint.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Endpoint-getHop"><strong>getHop</strong></a>(self, fillInset, path)</dt><dd><tt>Get a hop away from the endpoint if the other endpoint is doubling back.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Endpoint-getNearestEndpoint"><strong>getNearestEndpoint</strong></a>(self, endpoints)</dt><dd><tt>Get nearest endpoint.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Endpoint-getNearestMiss"><strong>getNearestMiss</strong></a>(self, endpoints, path, pixelTable, width)</dt><dd><tt>Get the nearest endpoint which the segment to that endpoint misses the other extrusions.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="LoopLayer">class <strong>LoopLayer</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>Loops with a z.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="LoopLayer-__init__"><strong>__init__</strong></a>(self, z)</dt></dl>
|
||||
|
||||
<dl><dt><a name="LoopLayer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this loop layer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="PathZ">class <strong>PathZ</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>Complex path with a z.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="PathZ-__init__"><strong>__init__</strong></a>(self, z)</dt></dl>
|
||||
|
||||
<dl><dt><a name="PathZ-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this path z.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="RotatedLoopLayer">class <strong>RotatedLoopLayer</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A rotated layer.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="RotatedLoopLayer-__init__"><strong>__init__</strong></a>(self, z)</dt></dl>
|
||||
|
||||
<dl><dt><a name="RotatedLoopLayer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this rotated loop layer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SurroundingLoop">class <strong>SurroundingLoop</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A loop that surrounds paths.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SurroundingLoop-__init__"><strong>__init__</strong></a>(self, isOutsideExtrudedFirst<font color="#909090">=True</font>)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this surrounding loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-addToBoundary"><strong>addToBoundary</strong></a>(self, vector3)</dt><dd><tt>Add vector3 to boundary.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-addToLoop"><strong>addToLoop</strong></a>(self, vector3)</dt><dd><tt>Add vector3 to loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-addToThreads"><strong>addToThreads</strong></a>(self, oldOrderedLocation, skein)</dt><dd><tt>Add to paths from the last location.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-getFillLoops"><strong>getFillLoops</strong></a>(self)</dt><dd><tt>Get last fill loops from the outside loop and the loops inside the inside loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-getFromInsideSurroundings"><strong>getFromInsideSurroundings</strong></a>(self, extrusionWidth, inputSurroundingInsides)</dt><dd><tt>Initialize from inside surrounding loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-getLoopsToBeFilled"><strong>getLoopsToBeFilled</strong></a>(self)</dt><dd><tt>Get last fill loops from the outside loop and the loops inside the inside loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-transferClosestFillLoops"><strong>transferClosestFillLoops</strong></a>(self, oldOrderedLocation, skein)</dt><dd><tt>Transfer closest fill loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SurroundingLoop-transferPaths"><strong>transferPaths</strong></a>(self, paths)</dt><dd><tt>Transfer paths.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="XIntersectionIndex">class <strong>XIntersectionIndex</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to hold the x intersection position and the index of the loop which intersected.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="XIntersectionIndex-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt><dd><tt>Get comparison in order to sort x intersections in ascending order of x.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XIntersectionIndex-__init__"><strong>__init__</strong></a>(self, index, x)</dt></dl>
|
||||
|
||||
<dl><dt><a name="XIntersectionIndex-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this x intersection.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addCircleToPixelTable"><strong>addCircleToPixelTable</strong></a>(pixelTable, pointComplex)</dt><dd><tt>Add pixel to the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addElementToPixelList"><strong>addElementToPixelList</strong></a>(element, pixelTable, x, y)</dt><dd><tt>Add an element to the pixel list.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLoopToPixelTable"><strong>addLoopToPixelTable</strong></a>(loop, pixelTable, width)</dt><dd><tt>Add loop to the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPathToPixelTable"><strong>addPathToPixelTable</strong></a>(path, pixelTable, width)</dt><dd><tt>Add path to the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPixelToPixelTable"><strong>addPixelToPixelTable</strong></a>(pixelTable, value, x, y)</dt><dd><tt>Add pixel to the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPixelToPixelTableWithSteepness"><strong>addPixelToPixelTableWithSteepness</strong></a>(isSteep, pixelTable, x, y)</dt><dd><tt>Add pixels to the pixel table with steepness.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPointToPath"><strong>addPointToPath</strong></a>(path, pixelTable, point, width)</dt><dd><tt>Add a point to a path and the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addSegmentToPixelTable"><strong>addSegmentToPixelTable</strong></a>(beginComplex, endComplex, pixelTable, shortenDistanceBegin, shortenDistanceEnd, width)</dt><dd><tt>Add line segment to the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addSurroundingLoopBeginning"><strong>addSurroundingLoopBeginning</strong></a>(loop, skein, z)</dt><dd><tt>Add surrounding loop beginning to gcode output.</tt></dd></dl>
|
||||
<dl><dt><a name="-addToThreadsFromLoop"><strong>addToThreadsFromLoop</strong></a>(extrusionHalfWidth, gcodeType, loop, oldOrderedLocation, skein)</dt><dd><tt>Add to threads from the last location from loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-addToThreadsRemoveFromSurroundings"><strong>addToThreadsRemoveFromSurroundings</strong></a>(oldOrderedLocation, surroundingLoops, skein)</dt><dd><tt>Add to threads from the last location from surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-addXIntersectionIndexes"><strong>addXIntersectionIndexes</strong></a>(loop, solidIndex, xIntersectionIndexList, y)</dt><dd><tt>Add the x intersections for a loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-addXIntersectionIndexesFromLoopLists"><strong>addXIntersectionIndexesFromLoopLists</strong></a>(loopLists, xIntersectionIndexList, y)</dt><dd><tt>Add the x intersections for the loop lists.</tt></dd></dl>
|
||||
<dl><dt><a name="-addXIntersectionIndexesFromLoops"><strong>addXIntersectionIndexesFromLoops</strong></a>(loops, solidIndex, xIntersectionIndexList, y)</dt><dd><tt>Add the x intersections for the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-compareSegmentLength"><strong>compareSegmentLength</strong></a>(endpoint, otherEndpoint)</dt><dd><tt>Get comparison in order to sort endpoints in ascending order of segment length.</tt></dd></dl>
|
||||
<dl><dt><a name="-getAngleAroundZAxisDifference"><strong>getAngleAroundZAxisDifference</strong></a>(subtractFromVec3, subtractVec3)</dt><dd><tt>Get the angle around the Z axis difference between a pair of Vector3s.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
subtractFromVec3 -- Vector3 whose angle will be subtracted from<br>
|
||||
subtractVec3 -- Vector3 whose angle will be subtracted</tt></dd></dl>
|
||||
<dl><dt><a name="-getAroundLoop"><strong>getAroundLoop</strong></a>(begin, end, loop)</dt><dd><tt>Get an arc around a loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getAwayPoints"><strong>getAwayPoints</strong></a>(pointComplexes, radius)</dt><dd><tt>Get a path with only the points that are far enough away from each other.</tt></dd></dl>
|
||||
<dl><dt><a name="-getBackOfLoops"><strong>getBackOfLoops</strong></a>(loops)</dt><dd><tt>Get the back of the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getClippedAtEndLoopPath"><strong>getClippedAtEndLoopPath</strong></a>(clip, loopPath)</dt><dd><tt>Get a clipped loop path.</tt></dd></dl>
|
||||
<dl><dt><a name="-getClippedLoopPath"><strong>getClippedLoopPath</strong></a>(clip, loopPath)</dt><dd><tt>Get a clipped loop path.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCrossProduct"><strong>getCrossProduct</strong></a>(firstComplex, secondComplex)</dt><dd><tt>Get z component cross product of a pair of complexes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getDistanceToPlaneSegment"><strong>getDistanceToPlaneSegment</strong></a>(segmentBegin, segmentEnd, point)</dt><dd><tt>Get the distance squared from a point to the x & y components of a segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getDotProduct"><strong>getDotProduct</strong></a>(firstComplex, secondComplex)</dt><dd><tt>Get the dot product of a pair of complexes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getDotProductPlusOne"><strong>getDotProductPlusOne</strong></a>(firstComplex, secondComplex)</dt><dd><tt>Get the dot product plus one of the x and y components of a pair of Vector3s.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFillOfSurroundings"><strong>getFillOfSurroundings</strong></a>(surroundingLoops)</dt><dd><tt>Get extra fill loops of surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFloatPart"><strong>getFloatPart</strong></a>(number)</dt><dd><tt>Get the float part of the number.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFrontOfLoops"><strong>getFrontOfLoops</strong></a>(loops)</dt><dd><tt>Get the front of the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getHalfSimplifiedLoop"><strong>getHalfSimplifiedLoop</strong></a>(loopComplex, radius, remainder)</dt><dd><tt>Get the loop with half of the points inside the channel removed.</tt></dd></dl>
|
||||
<dl><dt><a name="-getHalfSimplifiedPath"><strong>getHalfSimplifiedPath</strong></a>(path, radius, remainder)</dt><dd><tt>Get the path with half of the points inside the channel removed.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInsidesAddToOutsides"><strong>getInsidesAddToOutsides</strong></a>(loops, outsides)</dt><dd><tt>Add loops to either the insides or outsides.</tt></dd></dl>
|
||||
<dl><dt><a name="-getIntermediateLocation"><strong>getIntermediateLocation</strong></a>(alongWay, begin, end)</dt><dd><tt>Get the intermediate location between begin and end.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLargestLoop"><strong>getLargestLoop</strong></a>(loops)</dt><dd><tt>Get largest loop from loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLeftPoint"><strong>getLeftPoint</strong></a>(pointComplexes)</dt><dd><tt>Get the leftmost complex point in the points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopStartingNearest"><strong>getLoopStartingNearest</strong></a>(extrusionHalfWidth, location, loop)</dt><dd><tt>Add to threads from the last location from loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMaximum"><strong>getMaximum</strong></a>(firstComplex, secondComplex)</dt><dd><tt>Get a complex with each component the maximum of the respective components of a pair of complexes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMaximumFromPoints"><strong>getMaximumFromPoints</strong></a>(pointComplexes)</dt><dd><tt>Get a complex with each component the maximum of the respective components of a list of complex points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMaximumSpan"><strong>getMaximumSpan</strong></a>(loop)</dt><dd><tt>Get the maximum span of the loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMinimum"><strong>getMinimum</strong></a>(firstComplex, secondComplex)</dt><dd><tt>Get a complex with each component the minimum of the respective components of a pair of complexes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMinimumFromPoints"><strong>getMinimumFromPoints</strong></a>(pointComplexes)</dt><dd><tt>Get a complex with each component the minimum of the respective components of a list of complex points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getMinimumFromVec3List"><strong>getMinimumFromVec3List</strong></a>(vec3List)</dt><dd><tt>Get a complex with each component the minimum of the respective components of a list of Vector3s.</tt></dd></dl>
|
||||
<dl><dt><a name="-getNearestDistanceIndex"><strong>getNearestDistanceIndex</strong></a>(point, loop)</dt><dd><tt>Get the distance squared to the nearest segment of the loop and index of that segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getNearestPointOnSegment"><strong>getNearestPointOnSegment</strong></a>(segmentBegin, segmentEnd, point)</dt><dd><tt>Get the nearest point on the segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getNormalized"><strong>getNormalized</strong></a>(complexNumber)</dt><dd><tt>Get the normalized complex.</tt></dd></dl>
|
||||
<dl><dt><a name="-getNumberOfIntersectionsToLeft"><strong>getNumberOfIntersectionsToLeft</strong></a>(leftPointComplex, loopComplex)</dt><dd><tt>Get the number of intersections through the loop for the line starting from the left point and going left.</tt></dd></dl>
|
||||
<dl><dt><a name="-getOrderedSurroundingLoops"><strong>getOrderedSurroundingLoops</strong></a>(extrusionWidth, surroundingLoops)</dt><dd><tt>Get ordered surrounding loops from surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPathLength"><strong>getPathLength</strong></a>(path)</dt><dd><tt>Get the length of a path ( an open polyline ).</tt></dd></dl>
|
||||
<dl><dt><a name="-getPathsFromEndpoints"><strong>getPathsFromEndpoints</strong></a>(endpoints, fillInset, pixelTable, width)</dt><dd><tt>Get paths from endpoints.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPlaneDot"><strong>getPlaneDot</strong></a>(vec3First, vec3Second)</dt><dd><tt>Get the dot product of the x and y components of a pair of Vector3s.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPointMaximum"><strong>getPointMaximum</strong></a>(firstPoint, secondPoint)</dt><dd><tt>Get a point with each component the maximum of the respective components of a pair of Vector3s.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPointMinimum"><strong>getPointMinimum</strong></a>(firstPoint, secondPoint)</dt><dd><tt>Get a point with each component the minimum of the respective components of a pair of Vector3s.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPointPlusSegmentWithLength"><strong>getPointPlusSegmentWithLength</strong></a>(length, point, segment)</dt><dd><tt>Get point plus a segment scaled to a given length.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPointsRoundZAxis"><strong>getPointsRoundZAxis</strong></a>(planeAngle, points)</dt><dd><tt>Get points rotated by the plane angle</tt></dd></dl>
|
||||
<dl><dt><a name="-getPolar"><strong>getPolar</strong></a>(angle, radius<font color="#909090">=1.0</font>)</dt><dd><tt>Get polar complex from counterclockwise angle from 1, 0 and radius.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPolygonArea"><strong>getPolygonArea</strong></a>(polygonComplex)</dt><dd><tt>Get the area of a complex polygon.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPolygonLength"><strong>getPolygonLength</strong></a>(polygon)</dt><dd><tt>Get the length of a polygon perimeter.</tt></dd></dl>
|
||||
<dl><dt><a name="-getReverseFloatPart"><strong>getReverseFloatPart</strong></a>(number)</dt><dd><tt>Get the reverse float part of the number.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRotatedWiddershinsQuarterAroundZAxis"><strong>getRotatedWiddershinsQuarterAroundZAxis</strong></a>(vector3)</dt><dd><tt>Get Vector3 rotated a quarter widdershins turn around Z axis.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRoundZAxisByPlaneAngle"><strong>getRoundZAxisByPlaneAngle</strong></a>(planeAngle, vector3)</dt><dd><tt>Get Vector3 rotated by a plane angle.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
planeAngle - plane angle of the rotation<br>
|
||||
vector3 - Vector3 whose rotation will be returned</tt></dd></dl>
|
||||
<dl><dt><a name="-getRoundedPoint"><strong>getRoundedPoint</strong></a>(point)</dt><dd><tt>Get point with each component rounded.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRoundedToDecimalPlaces"><strong>getRoundedToDecimalPlaces</strong></a>(decimalPlaces, number)</dt><dd><tt>Get number rounded to a number of decimal places.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRoundedToDecimalPlacesString"><strong>getRoundedToDecimalPlacesString</strong></a>(decimalPlaces, number)</dt><dd><tt>Get number rounded to a number of decimal places as a string.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRoundedToThreePlaces"><strong>getRoundedToThreePlaces</strong></a>(number)</dt><dd><tt>Get number rounded to three places as a string.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSegmentFromPoints"><strong>getSegmentFromPoints</strong></a>(begin, end)</dt><dd><tt>Get endpoint segment from a pair of points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSegmentsFromXIntersectionIndexes"><strong>getSegmentsFromXIntersectionIndexes</strong></a>(xIntersectionIndexList, y)</dt><dd><tt>Get endpoint segments from the x intersection indexes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSegmentsFromXIntersections"><strong>getSegmentsFromXIntersections</strong></a>(xIntersections, y)</dt><dd><tt>Get endpoint segments from the x intersections.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSimplifiedLoop"><strong>getSimplifiedLoop</strong></a>(loopComplex, radius)</dt><dd><tt>Get loop with points inside the channel removed.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSimplifiedPath"><strong>getSimplifiedPath</strong></a>(path, radius)</dt><dd><tt>Get path with points inside the channel removed.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSquareValues"><strong>getSquareValues</strong></a>(pixelTable, x, y)</dt><dd><tt>Get a list of the values in a square around the x and y pixel coordinates.</tt></dd></dl>
|
||||
<dl><dt><a name="-getStepKey"><strong>getStepKey</strong></a>(x, y)</dt><dd><tt>Get step key for x and y.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTransferClosestSurroundingLoop"><strong>getTransferClosestSurroundingLoop</strong></a>(oldOrderedLocation, remainingSurroundingLoops, skein)</dt><dd><tt>Get and transfer the closest remaining surrounding loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTransferredPaths"><strong>getTransferredPaths</strong></a>(insides, loop)</dt><dd><tt>Get transferred paths from inside paths.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTransferredSurroundingLoops"><strong>getTransferredSurroundingLoops</strong></a>(insides, loop)</dt><dd><tt>Get transferred paths from inside surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getWiddershinsDotGiven"><strong>getWiddershinsDotGiven</strong></a>(complexFirst, complexSecond)</dt><dd><tt>Get the magintude of the positive dot product plus one of the x and y components of a pair of complexes, with the reversed sign of the cross product.</tt></dd></dl>
|
||||
<dl><dt><a name="-getXIntersection"><strong>getXIntersection</strong></a>(firstComplex, secondComplex, y)</dt><dd><tt>Get where the line crosses y.</tt></dd></dl>
|
||||
<dl><dt><a name="-getXIntersectionsFromIntersections"><strong>getXIntersectionsFromIntersections</strong></a>(xIntersectionIndexList)</dt><dd><tt>Get x intersections from the x intersection index list, in other words subtract non negative intersections from negatives.</tt></dd></dl>
|
||||
<dl><dt><a name="-getXYComplexFromVector3"><strong>getXYComplexFromVector3</strong></a>(vector3)</dt><dd><tt>Get an xy complex from a vector3 if it exists, otherwise return None.</tt></dd></dl>
|
||||
<dl><dt><a name="-getZComponentCrossProduct"><strong>getZComponentCrossProduct</strong></a>(vec3First, vec3Second)</dt><dd><tt>Get z component cross product of a pair of Vector3s.</tt></dd></dl>
|
||||
<dl><dt><a name="-isCloseXYPlane"><strong>isCloseXYPlane</strong></a>(overlapDistance, pixelTable, pointComplex, x, y)</dt><dd><tt>Determine if the point is close to another point on the loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-isInsideOtherLoops"><strong>isInsideOtherLoops</strong></a>(loopIndex, loops)</dt><dd><tt>Determine if a loop in a list is inside another loop in that list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLargeSameDirection"><strong>isLargeSameDirection</strong></a>(inset, loop, requiredSize)</dt><dd><tt>Determine if the inset is in the same direction as the loop and if the inset is as large as the required size.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLineIntersectingInsideXSegment"><strong>isLineIntersectingInsideXSegment</strong></a>(segmentFirstX, segmentSecondX, vector3First, vector3Second, y)</dt><dd><tt>Determine if the line is crossing inside the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLineIntersectingLoops"><strong>isLineIntersectingLoops</strong></a>(loops, pointBegin, pointEnd)</dt><dd><tt>Determine if the line is intersecting loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLoopIntersectingInsideXSegment"><strong>isLoopIntersectingInsideXSegment</strong></a>(loop, segmentFirstX, segmentSecondX, segmentYMirror, y)</dt><dd><tt>Determine if the loop is intersecting inside the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLoopIntersectingLoops"><strong>isLoopIntersectingLoops</strong></a>(loop, otherLoops)</dt><dd><tt>Determine if the loop is intersecting other loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLoopListIntersectingInsideXSegment"><strong>isLoopListIntersectingInsideXSegment</strong></a>(loopList, segmentFirstX, segmentSecondX, segmentYMirror, y)</dt><dd><tt>Determine if the loop list is crossing inside the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPathInsideLoop"><strong>isPathInsideLoop</strong></a>(loop, path)</dt><dd><tt>Determine if a path is inside another loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPathInsideLoops"><strong>isPathInsideLoops</strong></a>(loops, path)</dt><dd><tt>Determine if a path is inside another loop in a list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPixelTableIntersecting"><strong>isPixelTableIntersecting</strong></a>(bigTable, littleTable, maskTable<font color="#909090">={}</font>)</dt><dd><tt>Add path to the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPointInsideLoop"><strong>isPointInsideLoop</strong></a>(loop, point)</dt><dd><tt>Determine if a point is inside another loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPointInsideLoops"><strong>isPointInsideLoops</strong></a>(loops, point)</dt><dd><tt>Determine if a point is inside a loop list.</tt></dd></dl>
|
||||
<dl><dt><a name="-isSegmentCompletelyInX"><strong>isSegmentCompletelyInX</strong></a>(segment, xFirst, xSecond)</dt><dd><tt>Determine if the segment overlaps within x.</tt></dd></dl>
|
||||
<dl><dt><a name="-isWiddershins"><strong>isWiddershins</strong></a>(polygonComplex)</dt><dd><tt>Determine if the complex polygon goes round in the widdershins direction.</tt></dd></dl>
|
||||
<dl><dt><a name="-isWithinChannel"><strong>isWithinChannel</strong></a>(channelRadius, pointIndex, loopComplex)</dt><dd><tt>Determine if the the point is within the channel between two adjacent points.</tt></dd></dl>
|
||||
<dl><dt><a name="-isXSegmentIntersectingPaths"><strong>isXSegmentIntersectingPaths</strong></a>(paths, segmentFirstX, segmentSecondX, segmentYMirror, y)</dt><dd><tt>Determine if a path list is crossing inside the x segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-removePixelTableFromPixelTable"><strong>removePixelTableFromPixelTable</strong></a>(pixelTableToBeRemoved, pixelTableToBeRemovedFrom)</dt><dd><tt>Remove pixel from the pixel table.</tt></dd></dl>
|
||||
<dl><dt><a name="-toggleHashtable"><strong>toggleHashtable</strong></a>(hashtable, key, value)</dt><dd><tt>Toggle a hashtable between having and not having a key.</tt></dd></dl>
|
||||
<dl><dt><a name="-transferClosestFillLoop"><strong>transferClosestFillLoop</strong></a>(extrusionHalfWidth, oldOrderedLocation, remainingFillLoops, skein)</dt><dd><tt>Transfer the closest remaining fill loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-transferClosestPath"><strong>transferClosestPath</strong></a>(oldOrderedLocation, remainingPaths, skein)</dt><dd><tt>Transfer the closest remaining path.</tt></dd></dl>
|
||||
<dl><dt><a name="-transferClosestPaths"><strong>transferClosestPaths</strong></a>(oldOrderedLocation, remainingPaths, skein)</dt><dd><tt>Transfer the closest remaining paths.</tt></dd></dl>
|
||||
<dl><dt><a name="-transferPathsToSurroundingLoops"><strong>transferPathsToSurroundingLoops</strong></a>(paths, surroundingLoops)</dt><dd><tt>Transfer paths to surrounding loops.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,122 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.gcodec</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.gcodec</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/gcodec.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/gcodec.py</a></font></td></tr></table>
|
||||
<p><tt>Gcodec is a collection of utilities to decode and encode gcode.<br>
|
||||
<br>
|
||||
To run gcodec, install python 2.x on your machine, which is avaliable from <a href="http://www.python.org/download/">http://www.python.org/download/</a><br>
|
||||
<br>
|
||||
Then in the folder which gcodec is in, type 'python' in a shell to run the python interpreter. Finally type 'from gcodec import *' to import this program.<br>
|
||||
<br>
|
||||
Below is an example of gcodec use. This example is run in a terminal in the folder which contains Screw Holder Bottom.gcode and gcodec.py.<br>
|
||||
<br>
|
||||
>>> from gcodec import *<br>
|
||||
>>> <a href="#-getFileText">getFileText</a>('Screw Holder Bottom.gcode')<br>
|
||||
'( GCode generated by April 17,2007 Skeinforge )<br>
|
||||
( Extruder Initialization )<br>
|
||||
M100 P210<br>
|
||||
M103<br>
|
||||
M105<br>
|
||||
(<extrusionDiameter> P0.7<br>
|
||||
(<extrusionWidth> P0.654<br>
|
||||
(<layerThickness> P0.654<br>
|
||||
G21<br>
|
||||
G90<br>
|
||||
G28<br>
|
||||
( Extruder Movement )<br>
|
||||
( Extruder paths for layer 0 of Screw Holder Bottom )<br>
|
||||
(<extrusion><br>
|
||||
G1 X2.727 Y-2.505 Z0.33 F600.0<br>
|
||||
<br>
|
||||
..<br>
|
||||
many lines of text<br>
|
||||
..</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-createInitFile"><strong>createInitFile</strong></a>()</dt><dd><tt>Create the __init__.py file.</tt></dd></dl>
|
||||
<dl><dt><a name="-findWords"><strong>findWords</strong></a>(fileNames, search)</dt><dd><tt>Find in files the search.</tt></dd></dl>
|
||||
<dl><dt><a name="-getDoubleAfterFirstLetter"><strong>getDoubleAfterFirstLetter</strong></a>(word)</dt><dd><tt>Get the double value of the word after the first letter.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
word -- string with value starting after the first letter</tt></dd></dl>
|
||||
<dl><dt><a name="-getDoubleForLetter"><strong>getDoubleForLetter</strong></a>(letter, splitLine)</dt><dd><tt>Get the double value of the word after the first occurence of the letter in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getDoubleFromCharacterSplitLineValue"><strong>getDoubleFromCharacterSplitLineValue</strong></a>(character, splitLine, value)</dt><dd><tt>Get the double value of the string after the first occurence of the character in the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFeedrateMinute"><strong>getFeedrateMinute</strong></a>(feedrateMinute, splitLine)</dt><dd><tt>Get the feedrate per minute if the split line has a feedrate.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileText"><strong>getFileText</strong></a>(fileName, readMode<font color="#909090">='r'</font>)</dt><dd><tt>Get the entire text of a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileTextInFileDirectory"><strong>getFileTextInFileDirectory</strong></a>(fileInDirectory, fileName, readMode<font color="#909090">='r'</font>)</dt><dd><tt>Get the entire text of a file in the directory of the file in directory.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFilesWithFileTypeWithoutWords"><strong>getFilesWithFileTypeWithoutWords</strong></a>(fileType, words<font color="#909090">=[]</font>, fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get files which have a given file type, but with do not contain a word in a list.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
fileType -- file type required<br>
|
||||
words -- list of words which the file must not have</tt></dd></dl>
|
||||
<dl><dt><a name="-getFilesWithFileTypesWithoutWords"><strong>getFilesWithFileTypesWithoutWords</strong></a>(fileTypes, words<font color="#909090">=[]</font>, fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get files which have a given file type, but with do not contain a word in a list.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
fileType -- file types required<br>
|
||||
words -- list of words which the file must not have</tt></dd></dl>
|
||||
<dl><dt><a name="-getFirstWord"><strong>getFirstWord</strong></a>(splitLine)</dt><dd><tt>Get the first word of a split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getGcodeFileText"><strong>getGcodeFileText</strong></a>(fileName, gcodeText)</dt><dd><tt>Get the gcode text from a file if it the gcode text is empty and if the file is a gcode file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLocationFromSplitLine"><strong>getLocationFromSplitLine</strong></a>(oldLocation, splitLine)</dt><dd><tt>Get the location from the split line.</tt></dd></dl>
|
||||
<dl><dt><a name="-getModule"><strong>getModule</strong></a>(fileName, folderName, moduleFilename)</dt><dd><tt>Get the module from the fileName and folder name.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPluginFilenames"><strong>getPluginFilenames</strong></a>(folderName, moduleFilename)</dt><dd><tt>Get the fileNames of the python plugins in the export_plugins folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPythonDirectoryNames"><strong>getPythonDirectoryNames</strong></a>(directoryName)</dt><dd><tt>Get the python directories.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPythonDirectoryNamesRecursively"><strong>getPythonDirectoryNamesRecursively</strong></a>(directoryName<font color="#909090">=''</font>)</dt><dd><tt>Get the python directories recursively.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPythonFilenamesExceptInit"><strong>getPythonFilenamesExceptInit</strong></a>(fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get the python fileNames of the directory which the fileInDirectory is in, except for the __init__.py file.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPythonFilenamesExceptInitRecursively"><strong>getPythonFilenamesExceptInitRecursively</strong></a>(directoryName<font color="#909090">=''</font>)</dt><dd><tt>Get the python fileNames of the directory recursively, except for the __init__.py files.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSummarizedFilename"><strong>getSummarizedFilename</strong></a>(fileName)</dt><dd><tt>Get the fileName basename if the file is in the current working directory, otherwise return the original full name.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTextLines"><strong>getTextLines</strong></a>(text)</dt><dd><tt>Get the all the lines of text of a text.</tt></dd></dl>
|
||||
<dl><dt><a name="-getUnmodifiedGCodeFiles"><strong>getUnmodifiedGCodeFiles</strong></a>(fileInDirectory<font color="#909090">=''</font>)</dt><dd><tt>Get gcode files which are not modified.</tt></dd></dl>
|
||||
<dl><dt><a name="-getWithoutBracketsEqualTab"><strong>getWithoutBracketsEqualTab</strong></a>(line)</dt><dd><tt>Get a string without the greater than sign, the bracket and less than sign, the equal sign or the tab.</tt></dd></dl>
|
||||
<dl><dt><a name="-indexOfStartingWithSecond"><strong>indexOfStartingWithSecond</strong></a>(letter, splitLine)</dt><dd><tt>Get index of the first occurence of the given letter in the split line, starting with the second word. Return - 1 if letter is not found</tt></dd></dl>
|
||||
<dl><dt><a name="-isFileWithFileTypeWithoutWords"><strong>isFileWithFileTypeWithoutWords</strong></a>(fileType, fileName, words)</dt><dd><tt>Determine if file has a given file type, but with does not contain a word in a list.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
fileType -- file type required<br>
|
||||
fileName -- name of the file<br>
|
||||
words -- list of words which the fileName must not have</tt></dd></dl>
|
||||
<dl><dt><a name="-isProcedureDone"><strong>isProcedureDone</strong></a>(gcodeText, procedure)</dt><dd><tt>Determine if the procedure has been done on the gcode text.</tt></dd></dl>
|
||||
<dl><dt><a name="-isThereAFirstWord"><strong>isThereAFirstWord</strong></a>(firstWord, lines, startIndex)</dt><dd><tt>Parse gcode until the first word if there is one.</tt></dd></dl>
|
||||
<dl><dt><a name="-replaceWords"><strong>replaceWords</strong></a>(fileNames, original, replacement)</dt><dd><tt>Replace in files the original with the replacement.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeFileMessageEnd"><strong>writeFileMessageEnd</strong></a>(end, fileName, fileText, message)</dt><dd><tt>Write to a fileName with a suffix and print a message.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeFileText"><strong>writeFileText</strong></a>(fileName, fileText, writeMode<font color="#909090">='w+'</font>)</dt><dd><tt>Write a text to a file.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: package skeinforge_tools.skeinforge_utilities</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.skeinforge_utilities</strong></big></big></font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/__init__.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/__init__.py</a></font></td></tr></table>
|
||||
<p></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">intercircle</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.interpret.html">interpret</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">preferences</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html">triangle_mesh</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.vec3.html">vec3</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.vector3.html">vector3</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.xml_parser.html">xml_parser</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.xml_simple_parser.html">xml_simple_parser</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__all__</strong> = ['euclidean', 'gcodec', 'intercircle', 'preferences', 'trianglemesh', 'vec3']</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,145 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.intercircle</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.intercircle</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/intercircle.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/intercircle.py</a></font></td></tr></table>
|
||||
<p><tt>Intercircle is a collection of utilities for intersecting circles, used to get smooth loops around a collection of points and inset & outset loops.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.intercircle.html#BoundingLoop">BoundingLoop</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.intercircle.html#CircleIntersection">CircleIntersection</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.intercircle.html#CircleNode">CircleNode</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="BoundingLoop">class <strong>BoundingLoop</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to hold a bounding loop composed of a minimum complex, a maximum complex and an outset loop.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="BoundingLoop-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt><dd><tt>Get comparison in order to sort bounding loops in descending order of area.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BoundingLoop-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this bounding loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BoundingLoop-getFromLoop"><strong>getFromLoop</strong></a>(self, loop)</dt><dd><tt>Get the bounding loop from a path.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BoundingLoop-getOutsetBoundingLoop"><strong>getOutsetBoundingLoop</strong></a>(self, outsetDistance)</dt><dd><tt>Outset the bounding rectangle and loop by a distance.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BoundingLoop-isEntirelyInsideAnother"><strong>isEntirelyInsideAnother</strong></a>(self, anotherBoundingLoop)</dt><dd><tt>Determine if this bounding loop is entirely inside another bounding loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BoundingLoop-isOverlappingAnother"><strong>isOverlappingAnother</strong></a>(self, anotherBoundingLoop)</dt><dd><tt>Determine if this bounding loop is intersecting another bounding loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BoundingLoop-isRectangleMissingAnother"><strong>isRectangleMissingAnother</strong></a>(self, anotherBoundingLoop)</dt><dd><tt>Determine if the rectangle of this bounding loop is missing the rectangle of another bounding loop.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CircleIntersection">class <strong>CircleIntersection</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An intersection of two complex circles.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CircleIntersection-__init__"><strong>__init__</strong></a>(self, circleNodeAhead, index, circleNodeBehind)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CircleIntersection-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#CircleIntersection">CircleIntersection</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CircleIntersection-addToList"><strong>addToList</strong></a>(self, circleIntersectionPath)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CircleIntersection-getAbsolutePosition"><strong>getAbsolutePosition</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CircleIntersection-getCircleIntersectionAhead"><strong>getCircleIntersectionAhead</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CircleIntersection-getPositionRelativeToBehind"><strong>getPositionRelativeToBehind</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CircleIntersection-isWithinCircles"><strong>isWithinCircles</strong></a>(self, pixelTable, width)</dt></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="CircleNode">class <strong>CircleNode</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A complex node of complex circle intersections.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="CircleNode-__init__"><strong>__init__</strong></a>(self, circle, index, radius)</dt></dl>
|
||||
|
||||
<dl><dt><a name="CircleNode-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#CircleNode">CircleNode</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="CircleNode-getWithinNodes"><strong>getWithinNodes</strong></a>(self, pixelTable, width)</dt></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addCircleIntersectionLoop"><strong>addCircleIntersectionLoop</strong></a>(circleIntersectionPathComplexes, circleIntersections)</dt><dd><tt>Add a circle intersection loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-addOperatingOrbits"><strong>addOperatingOrbits</strong></a>(boundaryLoops, pointComplex, skein, temperatureChangeTime, z)</dt><dd><tt>Add the orbits before the operating layers.</tt></dd></dl>
|
||||
<dl><dt><a name="-addOrbits"><strong>addOrbits</strong></a>(loop, skein, temperatureChangeTime, z)</dt><dd><tt>Add orbits with the extruder off.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPointsFromSegment"><strong>addPointsFromSegment</strong></a>(pointComplexes, radius, pointBeginComplex, pointEndComplex, thresholdRatio<font color="#909090">=0.90000000000000002</font>)</dt><dd><tt>Add point complexes between the endpoints of a segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCentersFromCircleNodes"><strong>getCentersFromCircleNodes</strong></a>(circleNodesComplex)</dt><dd><tt>Get the complex centers of the circle intersection loops from circle nodes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCentersFromIntersectionLoop"><strong>getCentersFromIntersectionLoop</strong></a>(circleIntersectionLoopComplex)</dt><dd><tt>Get the centers from the intersection loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCentersFromIntersectionLoops"><strong>getCentersFromIntersectionLoops</strong></a>(circleIntersectionLoopComplexes)</dt><dd><tt>Get the centers from the intersection loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCentersFromLoopDirection"><strong>getCentersFromLoopDirection</strong></a>(isWiddershins, loop, radius)</dt><dd><tt>Get the centers of the circle intersection loops which go around in the given direction.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCircleIntersectionLoops"><strong>getCircleIntersectionLoops</strong></a>(circleIntersections)</dt><dd><tt>Get all the loops going through the circle intersections.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCircleIntersectionsFromCircleNodes"><strong>getCircleIntersectionsFromCircleNodes</strong></a>(circleNodesComplex)</dt><dd><tt>Get all the circle intersections which exist between all the circle nodes.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCircleNodesFromLoop"><strong>getCircleNodesFromLoop</strong></a>(loop, radius)</dt><dd><tt>Get the circle nodes from every point on a loop and between points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCircleNodesFromPoints"><strong>getCircleNodesFromPoints</strong></a>(pointComplexes, radius)</dt><dd><tt>Get the circle nodes from a path.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInsetFromClockwiseLoop"><strong>getInsetFromClockwiseLoop</strong></a>(loop, radius)</dt><dd><tt>Get loop inset from clockwise loop, out from widdershins loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInsetFromClockwiseTriple"><strong>getInsetFromClockwiseTriple</strong></a>(aheadAbsoluteComplex, behindAbsoluteComplex, centerComplex, radius)</dt><dd><tt>Get loop inset from clockwise triple, out from widdershins loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInsetLoops"><strong>getInsetLoops</strong></a>(inset, loops)</dt><dd><tt>Get the inset loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getIntersectionAtInset"><strong>getIntersectionAtInset</strong></a>(aheadComplex, behindComplex, inset)</dt><dd><tt>Get circle intersection loop at inset from segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsFromLoopsDirection"><strong>getLoopsFromLoopsDirection</strong></a>(isWiddershins, loops)</dt><dd><tt>Get the loops going round in a given direction.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSimplifiedInsetFromClockwiseLoop"><strong>getSimplifiedInsetFromClockwiseLoop</strong></a>(loop, radius)</dt><dd><tt>Get loop inset from clockwise loop, out from widdershins loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getWithoutIntersections"><strong>getWithoutIntersections</strong></a>(loop)</dt><dd><tt>Get loop without intersections.</tt></dd></dl>
|
||||
<dl><dt><a name="-isLoopIntersectingLoop"><strong>isLoopIntersectingLoop</strong></a>(anotherLoop, loop)</dt><dd><tt>Determine if the a loop is intersecting another loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-removeIntersection"><strong>removeIntersection</strong></a>(loop)</dt><dd><tt>Get loop without the first intersection.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,68 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.interpret</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.interpret</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/interpret.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/interpret.py</a></font></td></tr></table>
|
||||
<p><tt>Interpret is a collection of utilities to list the import plugins.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getTriangleMesh.<br>
|
||||
<br>
|
||||
The following examples shows functions of interpret. The examples are run in a terminal in the folder which contains interpret.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import interpret<br>
|
||||
>>> interpret.<a href="#-getGNUTranslatorGcodeFileTypeTuples">getGNUTranslatorGcodeFileTypeTuples</a>()<br>
|
||||
[('GTS files', '*.gts'), ('Gcode text files', '*.gcode'), ('STL files', '*.stl'), ('SVG files', '*.svg')]<br>
|
||||
<br>
|
||||
>>> interpret.<a href="#-getImportPluginFilenames">getImportPluginFilenames</a>()<br>
|
||||
['gts', 'stl', 'svg']</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getGNUTranslatorFilesUnmodified"><strong>getGNUTranslatorFilesUnmodified</strong></a>()</dt><dd><tt>Get the file types from the translators in the import plugins folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-getGNUTranslatorGcodeFileTypeTuples"><strong>getGNUTranslatorGcodeFileTypeTuples</strong></a>()</dt><dd><tt>Get the file type tuples from the translators in the import plugins folder plus gcode.</tt></dd></dl>
|
||||
<dl><dt><a name="-getImportPluginFilenames"><strong>getImportPluginFilenames</strong></a>()</dt><dd><tt>Get analyze plugin fileNames.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTranslatorFileTypeTuples"><strong>getTranslatorFileTypeTuples</strong></a>()</dt><dd><tt>Get the file types from the translators in the import plugins folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,633 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.preferences</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.preferences</strong></big></big> ($Date: 2008/23/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/preferences.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/preferences.py</a></font></td></tr></table>
|
||||
<p><tt>Preferences is a collection of utilities to display, read & write preferences.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="Tkinter.html">Tkinter</a><br>
|
||||
<a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
<a href="webbrowser.html">webbrowser</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#AddListboxSelection">AddListboxSelection</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#DeleteListboxSelection">DeleteListboxSelection</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#DisplayToolButton">DisplayToolButton</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#DisplayToolButtonBesidePrevious">DisplayToolButtonBesidePrevious</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#LabelDisplay">LabelDisplay</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#PreferencesDialog">PreferencesDialog</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#BooleanPreference">BooleanPreference</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#Radio">Radio</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#RadioCapitalized">RadioCapitalized</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#Filename">Filename</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#FloatPreference">FloatPreference</a>
|
||||
</font></dt><dd>
|
||||
<dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#IntPreference">IntPreference</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#ListPreference">ListPreference</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#ListboxPreference">ListboxPreference</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.preferences.html#WindowPosition">WindowPosition</a>
|
||||
</font></dt></dl>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="AddListboxSelection">class <strong>AddListboxSelection</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to add the selection of a listbox preference.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="AddListboxSelection-addSelection"><strong>addSelection</strong></a>(self)</dt><dd><tt>Add the selection of a listbox preference.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AddListboxSelection-addSelectionWithEvent"><strong>addSelectionWithEvent</strong></a>(self, event)</dt><dd><tt>Add the selection of a listbox preference, given an event.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AddListboxSelection-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AddListboxSelection-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AddListboxSelection-getFromListboxPreference"><strong>getFromListboxPreference</strong></a>(self, listboxPreference)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AddListboxSelection-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="AddListboxSelection-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="BooleanPreference">class <strong>BooleanPreference</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write a boolean.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="BooleanPreference-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the checkbox to the boolean.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because toggleCheckbox is handling the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the boolean to the string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-toggleCheckbox"><strong>toggleCheckbox</strong></a>(self)</dt><dd><tt>Workaround for Tkinter bug, toggle the value.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="BooleanPreference-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="BooleanPreference-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="DeleteListboxSelection">class <strong>DeleteListboxSelection</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#AddListboxSelection">AddListboxSelection</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to delete the selection of a listbox preference.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="DeleteListboxSelection-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DeleteListboxSelection-deleteSelection"><strong>deleteSelection</strong></a>(self)</dt><dd><tt>Delete the selection of a listbox preference.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#AddListboxSelection">AddListboxSelection</a>:<br>
|
||||
<dl><dt><a name="DeleteListboxSelection-addSelection"><strong>addSelection</strong></a>(self)</dt><dd><tt>Add the selection of a listbox preference.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DeleteListboxSelection-addSelectionWithEvent"><strong>addSelectionWithEvent</strong></a>(self, event)</dt><dd><tt>Add the selection of a listbox preference, given an event.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DeleteListboxSelection-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DeleteListboxSelection-getFromListboxPreference"><strong>getFromListboxPreference</strong></a>(self, listboxPreference)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DeleteListboxSelection-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DeleteListboxSelection-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="DisplayToolButton">class <strong>DisplayToolButton</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display the tool preferences dialog.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="DisplayToolButton-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButton-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButton-displayTool"><strong>displayTool</strong></a>(self)</dt><dd><tt>Display the tool preferences dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButton-getFromFolderName"><strong>getFromFolderName</strong></a>(self, folderName, moduleFilename, name)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButton-getLowerName"><strong>getLowerName</strong></a>(self)</dt><dd><tt>Get the lower case name.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButton-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the display tool button is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButton-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Do nothing because the display tool button is not archivable.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="DisplayToolButtonBesidePrevious">class <strong>DisplayToolButtonBesidePrevious</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#DisplayToolButton">DisplayToolButton</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display the tool preferences dialog beside the previous preference dialog element.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#DisplayToolButton">DisplayToolButton</a>:<br>
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Do nothing because the add listbox selection is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-displayTool"><strong>displayTool</strong></a>(self)</dt><dd><tt>Display the tool preferences dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-getFromFolderName"><strong>getFromFolderName</strong></a>(self, folderName, moduleFilename, name)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-getLowerName"><strong>getLowerName</strong></a>(self)</dt><dd><tt>Get the lower case name.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the display tool button is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="DisplayToolButtonBesidePrevious-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Do nothing because the display tool button is not archivable.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Filename">class <strong>Filename</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>)</font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Filename-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-execute"><strong>execute</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Filename-getFilenameFirstTypes"><strong>getFilenameFirstTypes</strong></a>(self)</dt><dd><tt>Get the file types with the file type of the fileName moved to the front of the list.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-getFromFilename"><strong>getFromFilename</strong></a>(self, fileTypes, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the file dialog is handling the value.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="Filename-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the string to the value string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Filename-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="FloatPreference">class <strong>FloatPreference</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write a float.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="FloatPreference-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the float to the string.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="FloatPreference-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the string to the entry field.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="FloatPreference-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="IntPreference">class <strong>IntPreference</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#FloatPreference">FloatPreference</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write an int.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#IntPreference">IntPreference</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#FloatPreference">FloatPreference</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="IntPreference-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the integer to the string.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#FloatPreference">FloatPreference</a>:<br>
|
||||
<dl><dt><a name="IntPreference-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="IntPreference-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the string to the entry field.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="IntPreference-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="LabelDisplay">class <strong>LabelDisplay</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to add a label.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="LabelDisplay-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LabelDisplay-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Do nothing because the label display is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LabelDisplay-getFromName"><strong>getFromName</strong></a>(self, name)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LabelDisplay-getName"><strong>getName</strong></a>(self)</dt><dd><tt>Get name for key sorting.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LabelDisplay-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the label display is not archivable.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LabelDisplay-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Do nothing because the label display is not archivable.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ListPreference">class <strong>ListPreference</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>)</font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ListPreference-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Do nothing because the list preference does not have a graphical interface.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Do nothing because the list preference does not have a graphical interface.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second and later words of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Do nothing because the list preference does not have a graphical interface.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and list to the archive writer.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="ListPreference-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListPreference-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ListboxPreference">class <strong>ListboxPreference</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>)</font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ListboxPreference-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-getFromListPreference"><strong>getFromListPreference</strong></a>(self, listPreference, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-setListboxItems"><strong>setListboxItems</strong></a>(self)</dt><dd><tt>Set the listbox items to the list preference.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the selection value to the listbox selection.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="ListboxPreference-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the string to the value string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ListboxPreference-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="PreferencesDialog">class <strong>PreferencesDialog</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="PreferencesDialog-__init__"><strong>__init__</strong></a>(self, displayPreferences, master)</dt><dd><tt>Add display preferences to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="PreferencesDialog-execute"><strong>execute</strong></a>(self)</dt><dd><tt>The execute button was clicked.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="PreferencesDialog-openBrowser"><strong>openBrowser</strong></a>(self)</dt><dd><tt>Open the browser to the help page.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="PreferencesDialog-savePreferences"><strong>savePreferences</strong></a>(self)</dt><dd><tt>Set the preferences to the dialog then write them.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="PreferencesDialog-savePreferencesDestroy"><strong>savePreferencesDestroy</strong></a>(self)</dt><dd><tt>Set the preferences to the dialog, write them, then destroy the window.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="PreferencesDialog-setWindowPosition"><strong>setWindowPosition</strong></a>(self)</dt><dd><tt>Set the window position if that preference exists.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Radio">class <strong>Radio</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#BooleanPreference">BooleanPreference</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write a boolean with associated radio button.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#Radio">Radio</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#BooleanPreference">BooleanPreference</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="Radio-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-clickRadio"><strong>clickRadio</strong></a>(self)</dt><dd><tt>Workaround for Tkinter bug, set the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-getFromRadio"><strong>getFromRadio</strong></a>(self, name, radio, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-getIntVar"><strong>getIntVar</strong></a>(self)</dt><dd><tt>Get the IntVar for this radio button group.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-setDisplayState"><strong>setDisplayState</strong></a>(self, row)</dt><dd><tt>Set the boolean to the checkbox.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the boolean to the checkbox.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#BooleanPreference">BooleanPreference</a>:<br>
|
||||
<dl><dt><a name="Radio-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the checkbox to the boolean.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the boolean to the string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-toggleCheckbox"><strong>toggleCheckbox</strong></a>(self)</dt><dd><tt>Workaround for Tkinter bug, toggle the value.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="Radio-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Radio-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="RadioCapitalized">class <strong>RadioCapitalized</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#Radio">Radio</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write a boolean with associated radio button.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%"><dl><dt>Method resolution order:</dt>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#RadioCapitalized">RadioCapitalized</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#Radio">Radio</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#BooleanPreference">BooleanPreference</a></dd>
|
||||
<dd><a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
Methods defined here:<br>
|
||||
<dl><dt><a name="RadioCapitalized-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-getLowerName"><strong>getLowerName</strong></a>(self)</dt><dd><tt>Get the lower case name.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#Radio">Radio</a>:<br>
|
||||
<dl><dt><a name="RadioCapitalized-clickRadio"><strong>clickRadio</strong></a>(self)</dt><dd><tt>Workaround for Tkinter bug, set the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-getFromRadio"><strong>getFromRadio</strong></a>(self, name, radio, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-getIntVar"><strong>getIntVar</strong></a>(self)</dt><dd><tt>Get the IntVar for this radio button group.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-setDisplayState"><strong>setDisplayState</strong></a>(self, row)</dt><dd><tt>Set the boolean to the checkbox.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the boolean to the checkbox.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#BooleanPreference">BooleanPreference</a>:<br>
|
||||
<dl><dt><a name="RadioCapitalized-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the checkbox to the boolean.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the boolean to the string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-toggleCheckbox"><strong>toggleCheckbox</strong></a>(self)</dt><dd><tt>Workaround for Tkinter bug, toggle the value.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="RadioCapitalized-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="RadioCapitalized-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="StringPreference">class <strong>StringPreference</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write a string.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="StringPreference-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Add this to the dialog.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the string to the entry field.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the string to the value string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StringPreference-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="WindowPosition">class <strong>WindowPosition</strong></a>(<a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>)</font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to display, read & write a window position.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="WindowPosition-addToDialog"><strong>addToDialog</strong></a>(self, preferencesDialog)</dt><dd><tt>Set the master to later get the geometry.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-setToDisplay"><strong>setToDisplay</strong></a>(self)</dt><dd><tt>Set the string to the window position.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-setWindowPosition"><strong>setWindowPosition</strong></a>(self)</dt><dd><tt>Set the window position.</tt></dd></dl>
|
||||
|
||||
<hr>
|
||||
Methods inherited from <a href="skeinforge_tools.skeinforge_utilities.preferences.html#StringPreference">StringPreference</a>:<br>
|
||||
<dl><dt><a name="WindowPosition-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the update function to none.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-addToPreferenceTable"><strong>addToPreferenceTable</strong></a>(self, preferenceTable)</dt><dd><tt>Add this to the preference table.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-getFromValue"><strong>getFromValue</strong></a>(self, name, value)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-setStateToValue"><strong>setStateToValue</strong></a>(self)</dt><dd><tt>Set the entry to the value.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-setUpdateFunction"><strong>setUpdateFunction</strong></a>(self, updateFunction)</dt><dd><tt>Set the update function.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-setValueToSplitLine"><strong>setValueToSplitLine</strong></a>(self, lineIndex, lines, splitLine)</dt><dd><tt>Set the value to the second word of a split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-setValueToString"><strong>setValueToString</strong></a>(self, valueString)</dt><dd><tt>Set the string to the value string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WindowPosition-writeToArchiveWriter"><strong>writeToArchiveWriter</strong></a>(self, archiveWriter)</dt><dd><tt>Write tab separated name and value to the archive writer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-displayDialog"><strong>displayDialog</strong></a>(displayPreferences)</dt><dd><tt>Display the preferences dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-getArchiveText"><strong>getArchiveText</strong></a>(archivablePreferences)</dt><dd><tt>Get the text representation of the archive.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileInGivenDirectory"><strong>getFileInGivenDirectory</strong></a>(directory, fileName)</dt><dd><tt>Get the file from the fileName or the lowercase fileName in the given directory.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileInGivenPreferencesDirectory"><strong>getFileInGivenPreferencesDirectory</strong></a>(directory, fileName)</dt><dd><tt>Get the file from the fileName or the lowercase fileName in the given directory, if there is no file look in the gcode_scripts folder in the preferences directory.</tt></dd></dl>
|
||||
<dl><dt><a name="-getFileTextGivenDirectoryFileName"><strong>getFileTextGivenDirectoryFileName</strong></a>(directory, fileName)</dt><dd><tt>Get the entire text of a file with the given file name in the given directory.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPreferencesDirectoryPath"><strong>getPreferencesDirectoryPath</strong></a>()</dt><dd><tt>Get the preferences directory path, which is the home directory joined with .skeinforge.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPreferencesFilePath"><strong>getPreferencesFilePath</strong></a>(fileName)</dt><dd><tt>Get the preferences file path, which is the home directory joined with .skeinforge and fileName.</tt></dd></dl>
|
||||
<dl><dt><a name="-readPreferences"><strong>readPreferences</strong></a>(archivablePreferences)</dt><dd><tt>Set an archive to the preferences read from a file.</tt></dd></dl>
|
||||
<dl><dt><a name="-readPreferencesFromText"><strong>readPreferencesFromText</strong></a>(archivablePreferences, text)</dt><dd><tt>Set an archive to the preferences read from a text.</tt></dd></dl>
|
||||
<dl><dt><a name="-setArchiveToLine"><strong>setArchiveToLine</strong></a>(lineIndex, lines, preferenceTable)</dt><dd><tt>Set an archive to a preference line.</tt></dd></dl>
|
||||
<dl><dt><a name="-setHelpPreferencesFileNameTitleWindowPosition"><strong>setHelpPreferencesFileNameTitleWindowPosition</strong></a>(displayPreferences, fileNameHelp)</dt><dd><tt>Set the help & preferences file path, the title and the window position archiver.</tt></dd></dl>
|
||||
<dl><dt><a name="-writePreferences"><strong>writePreferences</strong></a>(archivablePreferences)</dt><dd><tt>Write the preferences to a file.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/23/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)<br>
|
||||
<strong>globalIsMainLoopRunning</strong> = False<br>
|
||||
<strong>globalSpreadsheetSeparator</strong> = '<font color="#c040c0">\t</font>'</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,241 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.triangle_mesh</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.triangle_mesh</strong></big></big> ($Date: 2008/02/05 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/triangle_mesh.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/triangle_mesh.py</a></font></td></tr></table>
|
||||
<p><tt>Triangle Mesh holds the faces and edges of a triangular mesh.<br>
|
||||
<br>
|
||||
It can read from and write to a GNU Triangulated Surface (.gts) file.<br>
|
||||
<br>
|
||||
The following examples carve the GNU Triangulated Surface file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.stl and triangle_mesh.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import carve<br>
|
||||
>>> carve.main()<br>
|
||||
File Screw Holder Bottom.stl is being carved.<br>
|
||||
The carved file is saved as Screw Holder Bottom_carve.gcode<br>
|
||||
It took 3 seconds to carve the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> carve.writeOutput()<br>
|
||||
File Screw Holder Bottom.gcode is being carved.<br>
|
||||
The carved file is saved as Screw Holder Bottom_carve.gcode<br>
|
||||
It took 3 seconds to carve the file.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> carve.getCarveGcode("<br>
|
||||
54 162 108 Number of Vertices,Number of Edges,Number of Faces<br>
|
||||
-5.800000000000001 5.341893939393939 4.017841892579603 Vertex Coordinates XYZ<br>
|
||||
5.800000000000001 5.341893939393939 4.017841892579603<br>
|
||||
..<br>
|
||||
many lines of GNU Triangulated Surface vertices, edges and faces<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="cmath.html">cmath</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html#Edge">Edge</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html#EdgePair">EdgePair</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html#Face">Face</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html#LoopArea">LoopArea</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.triangle_mesh.html#TriangleMesh">TriangleMesh</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Edge">class <strong>Edge</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An edge of a triangle mesh.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Edge-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the face indexes to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Edge-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Edge">Edge</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Edge-addFaceIndex"><strong>addFaceIndex</strong></a>(self, faceIndex)</dt><dd><tt>Add first None face index to input face index.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Edge-getFromVertexIndexes"><strong>getFromVertexIndexes</strong></a>(self, edgeIndex, vertexIndexes)</dt><dd><tt>Initialize from two vertex indices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Edge-getGNUTriangulatedSurfaceLine"><strong>getGNUTriangulatedSurfaceLine</strong></a>(self)</dt><dd><tt>Get the GNU Triangulated Surface (.gts) line of text.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="EdgePair">class <strong>EdgePair</strong></a></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="EdgePair-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Pair of edges on a face.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="EdgePair-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#EdgePair">EdgePair</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="EdgePair-getFromIndexesEdges"><strong>getFromIndexesEdges</strong></a>(self, edgeIndexes, edges)</dt><dd><tt>Initialize from edge indices.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Face">class <strong>Face</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A face of a triangle mesh.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Face-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the edge indexes to None.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Face-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Face">Face</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Face-getFromEdgeIndexes"><strong>getFromEdgeIndexes</strong></a>(self, edgeIndexes, edges, faceIndex)</dt><dd><tt>Initialize from edge indices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Face-getGNUTriangulatedSurfaceLine"><strong>getGNUTriangulatedSurfaceLine</strong></a>(self)</dt><dd><tt>Get the GNU Triangulated Surface (.gts) line of text.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Face-setEdgeIndexesToVertexIndexes"><strong>setEdgeIndexesToVertexIndexes</strong></a>(self, edges, edgeTable)</dt><dd><tt>Set the edge indexes to the vertex indexes.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="LoopArea">class <strong>LoopArea</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>Complex loop with an area.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="LoopArea-__init__"><strong>__init__</strong></a>(self, loop)</dt></dl>
|
||||
|
||||
<dl><dt><a name="LoopArea-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this flat path.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="TriangleMesh">class <strong>TriangleMesh</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A triangle mesh.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="TriangleMesh-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#TriangleMesh">TriangleMesh</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getCarveCornerMaximum"><strong>getCarveCornerMaximum</strong></a>(self)</dt><dd><tt>Get the corner maximum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getCarveCornerMinimum"><strong>getCarveCornerMinimum</strong></a>(self)</dt><dd><tt>Get the corner minimum of the vertices.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getCarveLayerThickness"><strong>getCarveLayerThickness</strong></a>(self)</dt><dd><tt>Get the layer thickness.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getCarveRotatedBoundaryLayers"><strong>getCarveRotatedBoundaryLayers</strong></a>(self)</dt><dd><tt>Get the rotated boundary layers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getGNUTriangulatedSurfaceText"><strong>getGNUTriangulatedSurfaceText</strong></a>(self)</dt><dd><tt>Get this mesh in the GNU Triangulated Surface (.gts) format.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getLoopsFromMesh"><strong>getLoopsFromMesh</strong></a>(self, z)</dt><dd><tt>Get loops from a carve of a mesh.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-getZAddExtruderPaths"><strong>getZAddExtruderPaths</strong></a>(self, z)</dt><dd><tt>Get next z and add extruder loops.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-setCarveBridgeLayerThickness"><strong>setCarveBridgeLayerThickness</strong></a>(self, bridgeLayerThickness)</dt><dd><tt>Set the bridge layer thickness. If the infill is not in the direction of the bridge, the bridge layer thickness should be given as None or not set at all.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-setCarveImportRadius"><strong>setCarveImportRadius</strong></a>(self, importRadius)</dt><dd><tt>Set the import radius.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-setCarveIsCorrectMesh"><strong>setCarveIsCorrectMesh</strong></a>(self, isCorrectMesh)</dt><dd><tt>Set the is correct mesh flag.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-setCarveLayerThickness"><strong>setCarveLayerThickness</strong></a>(self, layerThickness)</dt><dd><tt>Set the layer thickness.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TriangleMesh-setEdgesForAllFaces"><strong>setEdgesForAllFaces</strong></a>(self)</dt><dd><tt>Set the face edges of all the faces.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-addEdgePair"><strong>addEdgePair</strong></a>(edgePairTable, edges, faceEdgeIndex, remainingEdgeIndex, remainingEdgeTable)</dt><dd><tt>Add edge pair to the edge pair table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addLoopToPointTable"><strong>addLoopToPointTable</strong></a>(loop, pointTable)</dt><dd><tt>Add the points in the loop to the point table.</tt></dd></dl>
|
||||
<dl><dt><a name="-addPointsAtZ"><strong>addPointsAtZ</strong></a>(edgePair, points, radius, vertices, z)</dt><dd><tt>Add point complexes on the segment between the edge intersections with z.</tt></dd></dl>
|
||||
<dl><dt><a name="-addToZoneArray"><strong>addToZoneArray</strong></a>(point, z, zoneArray, zZoneInterval)</dt><dd><tt>Add a height to the zone array.</tt></dd></dl>
|
||||
<dl><dt><a name="-addWithLeastLength"><strong>addWithLeastLength</strong></a>(loops, point, shortestAdditionalLength)</dt><dd><tt>Insert a point into a loop, at the index at which the loop would be shortest.</tt></dd></dl>
|
||||
<dl><dt><a name="-compareArea"><strong>compareArea</strong></a>(loopArea, otherLoopArea)</dt><dd><tt>Get comparison in order to sort loop areas in descending order of area.</tt></dd></dl>
|
||||
<dl><dt><a name="-getAdditionalLoopLength"><strong>getAdditionalLoopLength</strong></a>(loop, point, pointIndex)</dt><dd><tt>Get the additional length added by inserting a point into a loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getBridgeDirection"><strong>getBridgeDirection</strong></a>(belowLoops, layerLoops, layerThickness)</dt><dd><tt>Get span direction for the majority of the overhanging extrusion perimeter, if any.</tt></dd></dl>
|
||||
<dl><dt><a name="-getBridgeLoops"><strong>getBridgeLoops</strong></a>(layerThickness, loop)</dt><dd><tt>Get the inset bridge loops from the loop.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCarveIntersectionFromEdge"><strong>getCarveIntersectionFromEdge</strong></a>(edge, vertices, z)</dt><dd><tt>Get the complex where the carve intersects the edge.</tt></dd></dl>
|
||||
<dl><dt><a name="-getCommonVertexIndex"><strong>getCommonVertexIndex</strong></a>(edgeFirst, edgeSecond)</dt><dd><tt>Get the vertex index that both edges have in common.</tt></dd></dl>
|
||||
<dl><dt><a name="-getDoubledRoundZ"><strong>getDoubledRoundZ</strong></a>(overhangingSegment, segmentRoundZ)</dt><dd><tt>Get doubled plane angle around z of the overhanging segment.</tt></dd></dl>
|
||||
<dl><dt><a name="-getInclusiveLoops"><strong>getInclusiveLoops</strong></a>(allPoints, corners, importRadius, isInteriorWanted)</dt><dd><tt>Get loops which include most of the points.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsFromCorrectMesh"><strong>getLoopsFromCorrectMesh</strong></a>(edges, faces, vertices, z)</dt><dd><tt>Get loops from a carve of a correct mesh.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsFromUnprovenMesh"><strong>getLoopsFromUnprovenMesh</strong></a>(edges, faces, importRadius, vertices, z)</dt><dd><tt>Get loops from a carve of an unproven mesh.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsInDescendingOrderOfArea"><strong>getLoopsInDescendingOrderOfArea</strong></a>(loops)</dt><dd><tt>Get the lowest zone index.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLoopsWithCorners"><strong>getLoopsWithCorners</strong></a>(corners, importRadius, loops, pointTable)</dt><dd><tt>Add corners to the loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-getLowestZoneIndex"><strong>getLowestZoneIndex</strong></a>(zoneArray, z)</dt><dd><tt>Get the lowest zone index.</tt></dd></dl>
|
||||
<dl><dt><a name="-getNextEdgeIndexAroundZ"><strong>getNextEdgeIndexAroundZ</strong></a>(edge, faces, remainingEdgeTable)</dt><dd><tt>Get the next edge index in the mesh carve.</tt></dd></dl>
|
||||
<dl><dt><a name="-getOverhangDirection"><strong>getOverhangDirection</strong></a>(belowOutsetLoops, segmentBegin, segmentEnd)</dt><dd><tt>Add to span direction from the endpoint segments which overhang the layer below.</tt></dd></dl>
|
||||
<dl><dt><a name="-getOverlapRatio"><strong>getOverlapRatio</strong></a>(loop, pointTable)</dt><dd><tt>Get the overlap ratio between the loop and the point table.</tt></dd></dl>
|
||||
<dl><dt><a name="-getPath"><strong>getPath</strong></a>(edges, pathIndexes, loop, z)</dt><dd><tt>Get the path from the edge intersections.</tt></dd></dl>
|
||||
<dl><dt><a name="-getRemainingEdgeTable"><strong>getRemainingEdgeTable</strong></a>(edges, vertices, z)</dt><dd><tt>Get the remaining edge hashtable.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSharedFace"><strong>getSharedFace</strong></a>(firstEdge, faces, secondEdge)</dt><dd><tt>Get the face which is shared by two edges.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTriangleMesh"><strong>getTriangleMesh</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Carve a GNU Triangulated Surface file. If no fileName is specified, carve the first GNU Triangulated Surface file in this folder.</tt></dd></dl>
|
||||
<dl><dt><a name="-getZoneInterval"><strong>getZoneInterval</strong></a>(layerThickness)</dt><dd><tt>Get the zone interval around the slice height.</tt></dd></dl>
|
||||
<dl><dt><a name="-isInline"><strong>isInline</strong></a>(beginComplex, centerComplex, endComplex)</dt><dd><tt>Determine if the three complex points form a line.</tt></dd></dl>
|
||||
<dl><dt><a name="-isPathAdded"><strong>isPathAdded</strong></a>(edges, faces, loops, remainingEdgeTable, vertices, z)</dt><dd><tt>Get the path indexes around a triangle mesh carve and add the path to the flat loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-isZInEdge"><strong>isZInEdge</strong></a>(edge, vertices, z)</dt><dd><tt>Determine if z is inside the edge.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/02/05 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,173 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.vec3</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.vec3</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/vec3.pyc">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/vec3.pyc</a></font></td></tr></table>
|
||||
<p><tt><a href="#Vec3">Vec3</a> is a three dimensional vector class.<br>
|
||||
<br>
|
||||
#Class vec3 is deprecated, please use <a href="#Vec3">Vec3</a> instead.<br>
|
||||
<br>
|
||||
Below are examples of <a href="#Vec3">Vec3</a> use.<br>
|
||||
<br>
|
||||
>>> from vec3 import <a href="#Vec3">Vec3</a><br>
|
||||
>>> origin = <a href="#Vec3">Vec3</a>()<br>
|
||||
>>> origin<br>
|
||||
0.0, 0.0, 0.0<br>
|
||||
>>> pythagoras = <a href="#Vec3">Vec3</a>( 3, 4, 0 )<br>
|
||||
>>> pythagoras<br>
|
||||
3.0, 4.0, 0.0<br>
|
||||
>>> pythagoras.magnitude()<br>
|
||||
5.0<br>
|
||||
>>> pythagoras.magnitudeSquared()<br>
|
||||
25<br>
|
||||
>>> triplePythagoras = pythagoras * 3.0<br>
|
||||
>>> triplePythagoras<br>
|
||||
9.0, 12.0, 0.0<br>
|
||||
>>> plane = pythagoras.dropAxis( 2 )<br>
|
||||
>>> plane<br>
|
||||
(3+4j)</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
</td><td width="25%" valign=top><a href="operator.html">operator</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.vec3.html#Vec3">Vec3</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Vec3">class <strong>Vec3</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A three dimensional vector class.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Vec3-__abs__"><strong>__abs__</strong></a>(self)</dt><dd><tt>Get the magnitude of the <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__add__"><strong>__add__</strong></a>(self, other)</dt><dd><tt>Get the sum of this <a href="#Vec3">Vec3</a> and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__copy__"><strong>__copy__</strong></a>(self)</dt><dd><tt>Get the copy of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__div__"><strong>__div__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Determine whether this vector is identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__floordiv__"><strong>__floordiv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by floor dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__hash__"><strong>__hash__</strong></a>(self)</dt><dd><tt>Determine whether this vector is identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__iadd__"><strong>__iadd__</strong></a>(self, other)</dt><dd><tt>Add other <a href="#Vec3">Vec3</a> to this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__idiv__"><strong>__idiv__</strong></a>(self, other)</dt><dd><tt>Divide each component of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__ifloordiv__"><strong>__ifloordiv__</strong></a>(self, other)</dt><dd><tt>Floor divide each component of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__imul__"><strong>__imul__</strong></a>(self, other)</dt><dd><tt>Multiply each component of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__init__"><strong>__init__</strong></a>(self, x<font color="#909090">=0.0</font>, y<font color="#909090">=0.0</font>, z<font color="#909090">=0.0</font>)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__isub__"><strong>__isub__</strong></a>(self, other)</dt><dd><tt>Subtract other <a href="#Vec3">Vec3</a> from this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__itruediv__"><strong>__itruediv__</strong></a>(self, other)</dt><dd><tt>True divide each component of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__mul__"><strong>__mul__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by multiplying each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Determine whether this vector is not identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__neg__"><strong>__neg__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__pos__"><strong>__pos__</strong></a> = <a href="#Vec3-__copy__">__copy__</a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__rdiv__"><strong>__rdiv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__rfloordiv__"><strong>__rfloordiv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by floor dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__rmul__"><strong>__rmul__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by multiplying each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__rtruediv__"><strong>__rtruediv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by true dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__sub__"><strong>__sub__</strong></a>(self, other)</dt><dd><tt>Get the difference between the <a href="#Vec3">Vec3</a> and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-__truediv__"><strong>__truediv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vec3">Vec3</a> by true dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-copy"><strong>copy</strong></a> = <a href="#Vec3-__copy__">__copy__</a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-cross"><strong>cross</strong></a>(self, other)</dt><dd><tt>Calculate the cross product of this vector with other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-distance"><strong>distance</strong></a>(self, other)</dt><dd><tt>Get the Euclidean distance between this vector and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-distanceSquared"><strong>distanceSquared</strong></a>(self, other)</dt><dd><tt>Get the square of the Euclidean distance between this vector and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-dot"><strong>dot</strong></a>(self, other)</dt><dd><tt>Calculate the dot product of this vector with other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-dropAxis"><strong>dropAxis</strong></a>(self, which)</dt><dd><tt>Get a complex by removing one axis of this one.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
which -- the axis to drop (0=X, 1=Y, 2=Z)</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-getNormalized"><strong>getNormalized</strong></a>(self, other)</dt><dd><tt>Get the normalized <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-magnitude"><strong>magnitude</strong></a> = <a href="#Vec3-__abs__">__abs__</a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-magnitudeSquared"><strong>magnitudeSquared</strong></a>(self)</dt><dd><tt>Get the square of the magnitude of the <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-normalize"><strong>normalize</strong></a>(self)</dt><dd><tt>Scale each component of this <a href="#Vec3">Vec3</a> so that it has a magnitude of 1. If this <a href="#Vec3">Vec3</a> has a magnitude of 0, this method has no effect.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-reflect"><strong>reflect</strong></a>(self, normal)</dt><dd><tt>Reflect the <a href="#Vec3">Vec3</a> across the normal, which is assumed to be normalized.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-setToVec3"><strong>setToVec3</strong></a>(self, other)</dt><dd><tt>Set this <a href="#Vec3">Vec3</a> to be identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vec3-setToXYZ"><strong>setToXYZ</strong></a>(self, x, y, z)</dt><dd><tt>Set the x, y, and z components of this <a href="#Vec3">Vec3</a>.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://forums.reprap.org/profile.php?12,28><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://forums.reprap.org/profile.php?12,28">http://forums.reprap.org/profile.php?12,28</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,171 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.vector3</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.vector3</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/vector3.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/vector3.py</a></font></td></tr></table>
|
||||
<p><tt>Vec3 is a three dimensional vector class.<br>
|
||||
<br>
|
||||
Below are examples of <a href="#Vector3">Vector3</a> use.<br>
|
||||
<br>
|
||||
>>> from vector3 import <a href="#Vector3">Vector3</a><br>
|
||||
>>> origin = <a href="#Vector3">Vector3</a>()<br>
|
||||
>>> origin<br>
|
||||
0.0, 0.0, 0.0<br>
|
||||
>>> pythagoras = <a href="#Vector3">Vector3</a>( 3, 4, 0 )<br>
|
||||
>>> pythagoras<br>
|
||||
3.0, 4.0, 0.0<br>
|
||||
>>> pythagoras.magnitude()<br>
|
||||
5.0<br>
|
||||
>>> pythagoras.magnitudeSquared()<br>
|
||||
25<br>
|
||||
>>> triplePythagoras = pythagoras * 3.0<br>
|
||||
>>> triplePythagoras<br>
|
||||
9.0, 12.0, 0.0<br>
|
||||
>>> plane = pythagoras.dropAxis( 2 )<br>
|
||||
>>> plane<br>
|
||||
(3+4j)</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
</td><td width="25%" valign=top><a href="operator.html">operator</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.vector3.html#Vector3">Vector3</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="Vector3">class <strong>Vector3</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A three dimensional vector class.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="Vector3-__abs__"><strong>__abs__</strong></a>(self)</dt><dd><tt>Get the magnitude of the <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__add__"><strong>__add__</strong></a>(self, other)</dt><dd><tt>Get the sum of this <a href="#Vector3">Vector3</a> and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__copy__"><strong>__copy__</strong></a>(self)</dt><dd><tt>Get the copy of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__div__"><strong>__div__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Determine whether this vector is identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__floordiv__"><strong>__floordiv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by floor dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__hash__"><strong>__hash__</strong></a>(self)</dt><dd><tt>Determine whether this vector is identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__iadd__"><strong>__iadd__</strong></a>(self, other)</dt><dd><tt>Add other <a href="#Vector3">Vector3</a> to this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__idiv__"><strong>__idiv__</strong></a>(self, other)</dt><dd><tt>Divide each component of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__ifloordiv__"><strong>__ifloordiv__</strong></a>(self, other)</dt><dd><tt>Floor divide each component of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__imul__"><strong>__imul__</strong></a>(self, other)</dt><dd><tt>Multiply each component of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__init__"><strong>__init__</strong></a>(self, x<font color="#909090">=0.0</font>, y<font color="#909090">=0.0</font>, z<font color="#909090">=0.0</font>)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__isub__"><strong>__isub__</strong></a>(self, other)</dt><dd><tt>Subtract other <a href="#Vector3">Vector3</a> from this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__itruediv__"><strong>__itruediv__</strong></a>(self, other)</dt><dd><tt>True divide each component of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__mul__"><strong>__mul__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by multiplying each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Determine whether this vector is not identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__neg__"><strong>__neg__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__pos__"><strong>__pos__</strong></a> = <a href="#Vector3-__copy__">__copy__</a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__rdiv__"><strong>__rdiv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__rfloordiv__"><strong>__rfloordiv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by floor dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__rmul__"><strong>__rmul__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by multiplying each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__rtruediv__"><strong>__rtruediv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by true dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__sub__"><strong>__sub__</strong></a>(self, other)</dt><dd><tt>Get the difference between the <a href="#Vector3">Vector3</a> and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-__truediv__"><strong>__truediv__</strong></a>(self, other)</dt><dd><tt>Get a new <a href="#Vector3">Vector3</a> by true dividing each component of this one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-copy"><strong>copy</strong></a> = <a href="#Vector3-__copy__">__copy__</a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-cross"><strong>cross</strong></a>(self, other)</dt><dd><tt>Calculate the cross product of this vector with other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-distance"><strong>distance</strong></a>(self, other)</dt><dd><tt>Get the Euclidean distance between this vector and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-distanceSquared"><strong>distanceSquared</strong></a>(self, other)</dt><dd><tt>Get the square of the Euclidean distance between this vector and other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-dot"><strong>dot</strong></a>(self, other)</dt><dd><tt>Calculate the dot product of this vector with other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-dropAxis"><strong>dropAxis</strong></a>(self, which)</dt><dd><tt>Get a complex by removing one axis of this one.<br>
|
||||
<br>
|
||||
Keyword arguments:<br>
|
||||
which -- the axis to drop (0=X, 1=Y, 2=Z)</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-getNormalized"><strong>getNormalized</strong></a>(self, other)</dt><dd><tt>Get the normalized <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-magnitude"><strong>magnitude</strong></a> = <a href="#Vector3-__abs__">__abs__</a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-magnitudeSquared"><strong>magnitudeSquared</strong></a>(self)</dt><dd><tt>Get the square of the magnitude of the <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-normalize"><strong>normalize</strong></a>(self)</dt><dd><tt>Scale each component of this <a href="#Vector3">Vector3</a> so that it has a magnitude of 1. If this <a href="#Vector3">Vector3</a> has a magnitude of 0, this method has no effect.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-reflect"><strong>reflect</strong></a>(self, normal)</dt><dd><tt>Reflect the <a href="#Vector3">Vector3</a> across the normal, which is assumed to be normalized.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-setToVec3"><strong>setToVec3</strong></a>(self, other)</dt><dd><tt>Set this <a href="#Vector3">Vector3</a> to be identical to other one.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="Vector3-setToXYZ"><strong>setToXYZ</strong></a>(self, x, y, z)</dt><dd><tt>Set the x, y, and z components of this <a href="#Vector3">Vector3</a>.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://forums.reprap.org/profile.php?12,28><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://forums.reprap.org/profile.php?12,28">http://forums.reprap.org/profile.php?12,28</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,124 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.xml_parser</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.xml_parser</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/xml_parser.pyc">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/xml_parser.pyc</a></font></td></tr></table>
|
||||
<p><tt>The svg.py script is an import translator plugin to get a carving from an svg file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an svg file and returns the carving.<br>
|
||||
<br>
|
||||
This example gets a carving for the svg file Screw Holder Bottom.svg. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.svg and svg.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import svg<br>
|
||||
>>> svg.getCarving()<br>
|
||||
0.20000000298, 999999999.0, -999999999.0, [8.72782748851e-17, None<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.xml_parser.html#XMLElement">XMLElement</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.xml_parser.html#XMLParser">XMLParser</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="XMLElement">class <strong>XMLElement</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An xml element.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="XMLElement-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this XML element.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-addAttribute"><strong>addAttribute</strong></a>(self, word)</dt><dd><tt>Set the attribute table to the split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-getChildrenWithClassName"><strong>getChildrenWithClassName</strong></a>(self, className)</dt><dd><tt>Get the children which have the given class name.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-getFirstChildWithClassName"><strong>getFirstChildWithClassName</strong></a>(self, className)</dt><dd><tt>Get the first child which has the given class name.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-getSubChildWithID"><strong>getSubChildWithID</strong></a>(self, idReference)</dt><dd><tt>Get the child which has the idReference.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-parseReplacedLine"><strong>parseReplacedLine</strong></a>(self, line, parents)</dt><dd><tt>Parse replaced line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="XMLParser">class <strong>XMLParser</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An xml parser.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="XMLParser-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLParser-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this parser.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLParser-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the inset skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLParser-parseXMLText"><strong>parseXMLText</strong></a>(self, xmlText)</dt><dd><tt>Parse XML text and store the layers.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,124 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.skeinforge_utilities.xml_simple_parser</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.<a href="skeinforge_tools.skeinforge_utilities.html"><font color="#ffffff">skeinforge_utilities</font></a>.xml_simple_parser</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/xml_simple_parser.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/xml_simple_parser.py</a></font></td></tr></table>
|
||||
<p><tt>The svg.py script is an import translator plugin to get a carving from an svg file.<br>
|
||||
<br>
|
||||
An import plugin is a script in the import_plugins folder which has the function getCarving. It is meant to be run from the<br>
|
||||
interpret tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin<br>
|
||||
a lower case name.<br>
|
||||
<br>
|
||||
The getCarving function takes the file name of an svg file and returns the carving.<br>
|
||||
<br>
|
||||
This example gets a carving for the svg file Screw Holder Bottom.svg. This example is run in a terminal in the folder which<br>
|
||||
contains Screw Holder Bottom.svg and svg.py.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import svg<br>
|
||||
>>> svg.getCarving()<br>
|
||||
0.20000000298, 999999999.0, -999999999.0, [8.72782748851e-17, None<br>
|
||||
..<br>
|
||||
many more lines of the carving<br>
|
||||
..</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.xml_simple_parser.html#XMLElement">XMLElement</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.skeinforge_utilities.xml_simple_parser.html#XMLSimpleParser">XMLSimpleParser</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="XMLElement">class <strong>XMLElement</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>An xml element.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="XMLElement-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this XML element.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-addAttribute"><strong>addAttribute</strong></a>(self, word)</dt><dd><tt>Set the attribute table to the split line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-getChildrenWithClassName"><strong>getChildrenWithClassName</strong></a>(self, className)</dt><dd><tt>Get the children which have the given class name.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-getFirstChildWithClassName"><strong>getFirstChildWithClassName</strong></a>(self, className)</dt><dd><tt>Get the first child which has the given class name.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-getSubChildWithID"><strong>getSubChildWithID</strong></a>(self, idReference)</dt><dd><tt>Get the child which has the idReference.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLElement-parseReplacedLine"><strong>parseReplacedLine</strong></a>(self, line, parents)</dt><dd><tt>Parse replaced line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="XMLSimpleParser">class <strong>XMLSimpleParser</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A simple xml parser.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="XMLSimpleParser-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLSimpleParser-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this parser.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLSimpleParser-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the inset skein.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="XMLSimpleParser-parseXMLText"><strong>parseXMLText</strong></a>(self, xmlText)</dt><dd><tt>Parse XML text and store the layers.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br>
|
||||
Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,196 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.speed</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.speed</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/speed.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/speed.py</a></font></td></tr></table>
|
||||
<p><tt>Speed is a script to set the feedrate, and flowrate.<br>
|
||||
<br>
|
||||
The default 'Activate Speed' checkbox is on. When it is on, the functions described below will work, when it is off, the<br>
|
||||
functions will not be called. The speed script sets the feedrate, and flowrate. To run speed, in a shell type:<br>
|
||||
> python speed.py<br>
|
||||
<br>
|
||||
The 'Extrusion Diameter over Thickness is the ratio of the extrusion diameter over the layer thickness, the default is 1.25. The<br>
|
||||
extrusion fill density ratio that is printed to the console, ( it is derived quantity not a parameter ) is the area of the extrusion<br>
|
||||
diameter over the extrusion width over the layer thickness. Assuming the extrusion diameter is correct, a high value means the<br>
|
||||
filament will be packed tightly, and the object will be almost as dense as the filament. If the value is too high, there could be too<br>
|
||||
little room for the filament, and the extruder will end up plowing through the extra filament. A low value means the filaments will<br>
|
||||
be far away from each other, the object will be leaky and light. The value with the default extrusion preferences is around 0.82.<br>
|
||||
<br>
|
||||
The feedrate for the shape will be set to the 'Feedrate" preference. The speed of the orbit compared to the operating extruder<br>
|
||||
speed will be set to the "Orbital Feedrate over Operating Feedrate" preference. If you want the orbit to be very short, set the<br>
|
||||
"Orbital Feedrate over Operating Feedrate" preference to a low value like 0.1.<br>
|
||||
<br>
|
||||
In the "Flowrate Choice" radio button group, if "Do Not Add Flowrate" is selected then speed will not add a flowrate to the gcode<br>
|
||||
output. If "Metric" is selected, the flowrate in cubic millimeters per second will be added to the output. If "PWM Setting" is<br>
|
||||
selected, the value in the "Flowrate PWM Setting" field will be added to the output.<br>
|
||||
<br>
|
||||
The 'Perimeter Feedrate over Operating Feedrate' is the ratio of the feedrate of the perimeter over the feedrate of the infill. With<br>
|
||||
the default of 1.0, the perimeter feedrate will be the same as the infill feedrate. The 'Perimeter Flowrate over Operating Flowrate'<br>
|
||||
is the ratio of the flowrate of the perimeter over the flowrate of the infill. With the default of 1.0, the perimeter flow rate will be<br>
|
||||
the same as the infill flow rate. To have higher build quality on the outside at the expense of slower build speed, a typical<br>
|
||||
setting for the 'Perimeter Feedrate over Operating Feedrate' would be 0.5. To go along with that, if you are using a speed<br>
|
||||
controlled extruder, the 'Perimeter Flowrate over Operating Flowrate' should also be 0.5. If you are using Pulse Width Modulation<br>
|
||||
to control the speed, then you'll probably need a slightly higher ratio because there is a minimum voltage 'Flowrate PWM Setting'<br>
|
||||
required for the extruder motor to turn. The flow rate PWM ratio would be determined by trial and error, with the first trial being:<br>
|
||||
Perimeter Flowrate over Operating Flowrate ~<br>
|
||||
Perimeter Feedrate over Operating Feedrate * ( Flowrate PWM Setting - Minimum Flowrate PWM Setting )<br>
|
||||
+ Minimum Flowrate PWM Setting<br>
|
||||
<br>
|
||||
The following examples speed the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and speed.py. The speed function will speed if "Activate<br>
|
||||
Speed" is true, which can be set in the dialog or by changing the preferences file 'speed.csv' with a text editor or a spreadsheet<br>
|
||||
program set to separate tabs. The functions writeOutput and getSpeedChainGcode check to see if the text has been speeded,<br>
|
||||
if not they call getMultiplyChainGcode in multiply.py to get multiplied gcode; once they have the multiplied text, then they<br>
|
||||
speed.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python speed.py<br>
|
||||
This brings up the dialog, after clicking 'Speed', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain speeded.<br>
|
||||
The speeded file is saved as Screw Holder Bottom_speed.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import speed<br>
|
||||
>>> speed.<a href="#-main">main</a>()<br>
|
||||
This brings up the speed dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> speed.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain speeded.<br>
|
||||
The speeded file is saved as Screw Holder Bottom_speed.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> speed.<a href="#-getSpeedGcode">getSpeedGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> speed.<a href="#-getSpeedChainGcode">getSpeedChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="skeinforge_tools.material.html">skeinforge_tools.material</a><br>
|
||||
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.multiply.html">skeinforge_tools.multiply</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.speed.html#SpeedPreferences">SpeedPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.speed.html#SpeedSkein">SpeedSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SpeedPreferences">class <strong>SpeedPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the speed preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SpeedPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Speed button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="SpeedSkein">class <strong>SpeedSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to speed a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="SpeedSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-addFlowrateLine"><strong>addFlowrateLine</strong></a>(self, flowrateString)</dt><dd><tt>Add flowrate line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-getFlowrateString"><strong>getFlowrateString</strong></a>(self)</dt><dd><tt>Get the flowrate string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-getGcodeFromFeedrateMovement"><strong>getGcodeFromFeedrateMovement</strong></a>(self, feedrateMinute, point)</dt><dd><tt>Get a gcode movement.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-getSpeededLine"><strong>getSpeededLine</strong></a>(self, splitLine)</dt><dd><tt>Get elevated gcode line with operating feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, speedPreferences)</dt><dd><tt>Parse gcode text and store the speed gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="SpeedSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the speed skein.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getSpeedChainGcode"><strong>getSpeedChainGcode</strong></a>(fileName, gcodeText, speedPreferences<font color="#909090">=None</font>)</dt><dd><tt>Speed a gcode linear move text. Chain speed the gcode if it is not already speeded.</tt></dd></dl>
|
||||
<dl><dt><a name="-getSpeedGcode"><strong>getSpeedGcode</strong></a>(gcodeText, speedPreferences<font color="#909090">=None</font>)</dt><dd><tt>Speed a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the speed dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Speed a gcode linear move file. Chain speed the gcode if it is not already speeded.<br>
|
||||
If no fileName is specified, speed the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,224 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.stretch</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.stretch</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/stretch.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/stretch.py</a></font></td></tr></table>
|
||||
<p><tt>Stretch is a script to stretch the threads to partially compensate for filament shrinkage when extruded.<br>
|
||||
<br>
|
||||
The default 'Activate Stretch' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
The important value for the stretch preferences is "Perimeter Maximum Stretch Over Extrusion Width (ratio)" which is the ratio of<br>
|
||||
the maximum amount the perimeter thread will be stretched compared to the extrusion width, the default is 0.2. The higher the<br>
|
||||
value the more it will stretch the perimeter and the wider holes will be. If the value is too small, the holes will have to be<br>
|
||||
drilled out after fabrication, if the value is too high, the holes will be too wide and the part will have to junked, so the default is<br>
|
||||
low. The 'Maximum Stretch Over Extrusion Width' is the ratio of the maximum amount the infill threads will be stretched<br>
|
||||
compared to the extrusion width, in general this value should be around half the Perimeter Maximum Stretch preference.<br>
|
||||
<br>
|
||||
In general, stretch will widen holes and push corners out. The algorithm works by checking at each turning point on the<br>
|
||||
extrusion path what the direction of the thread is at a distance of "Stretch from Distance over Extrusion Width (ratio)" times the<br>
|
||||
extrusion width, on both sides, and moves the thread in the opposite direction. The magnitude of the stretch increases with the<br>
|
||||
amount that the direction of the two threads is similar and by the Stretch Over Extrusion Width ratio. The script then also<br>
|
||||
stretches the thread at two locations on the path on close to the turning points. In practice the filament contraction will be<br>
|
||||
similar but different from the algorithm, so even once the optimal parameters are determined, the stretch script will not be able<br>
|
||||
to eliminate the inaccuracies caused by contraction, but it should reduce them. To run stretch, in a shell type:<br>
|
||||
> python stretch.py<br>
|
||||
<br>
|
||||
The following examples stretch the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the<br>
|
||||
folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and stretch.py. The functions writeOutput and<br>
|
||||
getStretchChainGcode check to see if the text has been stretched, if not they call the getCoolChainGcode in cool.py to cool the<br>
|
||||
text; once they have the cooled text, then they stretch.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python stretch.py Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain stretched.<br>
|
||||
The stretched file is saved as Screw Holder Bottom_stretch.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python stretch.py<br>
|
||||
This brings up the dialog, after clicking 'Stretch', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain stretched.<br>
|
||||
The stretched file is saved as Screw Holder Bottom_stretch.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import stretch<br>
|
||||
>>> stretch.<a href="#-main">main</a>()<br>
|
||||
This brings up the stretch dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> stretch.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain stretched.<br>
|
||||
The stretched file is saved as Screw Holder Bottom_stretch.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> stretch.<a href="#-getStretchGcode">getStretchGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> stretch.<a href="#-getStretchChainGcode">getStretchChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.cool.html">skeinforge_tools.cool</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.stretch.html#LineIteratorBackward">LineIteratorBackward</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.stretch.html#LineIteratorForward">LineIteratorForward</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.stretch.html#StretchPreferences">StretchPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.stretch.html#StretchSkein">StretchSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="LineIteratorBackward">class <strong>LineIteratorBackward</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>Backward line iterator class.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="LineIteratorBackward-__init__"><strong>__init__</strong></a>(self, isLoop, lineIndex, lines)</dt></dl>
|
||||
|
||||
<dl><dt><a name="LineIteratorBackward-getIndexBeforeNextDeactivate"><strong>getIndexBeforeNextDeactivate</strong></a>(self)</dt><dd><tt>Get index two lines before the deactivate command.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LineIteratorBackward-getNext"><strong>getNext</strong></a>(self)</dt><dd><tt>Get next line going backward or raise exception.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LineIteratorBackward-isBeforeExtrusion"><strong>isBeforeExtrusion</strong></a>(self)</dt><dd><tt>Determine if index is two or more before activate command.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="LineIteratorForward">class <strong>LineIteratorForward</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>Forward line iterator class.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="LineIteratorForward-__init__"><strong>__init__</strong></a>(self, isLoop, lineIndex, lines)</dt></dl>
|
||||
|
||||
<dl><dt><a name="LineIteratorForward-getIndexJustAfterActivate"><strong>getIndexJustAfterActivate</strong></a>(self)</dt><dd><tt>Get index just after the activate command.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="LineIteratorForward-getNext"><strong>getNext</strong></a>(self)</dt><dd><tt>Get next line or raise exception.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="StretchPreferences">class <strong>StretchPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the stretch preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="StretchPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Stretch button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="StretchSkein">class <strong>StretchSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to stretch a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="StretchSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-addAlongWayLine"><strong>addAlongWayLine</strong></a>(self, alongWay, location)</dt><dd><tt>Add stretched gcode line, along the way from the location to the old location.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-addStretchesBeforePoint"><strong>addStretchesBeforePoint</strong></a>(self, location)</dt><dd><tt>Get stretched gcode line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-getRelativeStretch"><strong>getRelativeStretch</strong></a>(self, location, lineIndexRange)</dt><dd><tt>Get relative stretch for a location minus a point.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-getStretchedLine"><strong>getStretchedLine</strong></a>(self, splitLine)</dt><dd><tt>Get stretched gcode line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-getStretchedLineFromIndexLocation"><strong>getStretchedLineFromIndexLocation</strong></a>(self, indexPreviousStart, indexNextStart, location)</dt><dd><tt>Get stretched gcode line from line index and location.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-isJustBeforeExtrusion"><strong>isJustBeforeExtrusion</strong></a>(self)</dt><dd><tt>Determine if activate command is before linear move command.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, stretchPreferences)</dt><dd><tt>Parse gcode text and store the stretch gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="StretchSkein-parseStretch"><strong>parseStretch</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the stretch skein.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getStretchChainGcode"><strong>getStretchChainGcode</strong></a>(fileName, gcodeText, stretchPreferences<font color="#909090">=None</font>)</dt><dd><tt>Stretch a gcode linear move text. Chain stretch the gcode if it is not already stretched.</tt></dd></dl>
|
||||
<dl><dt><a name="-getStretchGcode"><strong>getStretchGcode</strong></a>(gcodeText, stretchPreferences<font color="#909090">=None</font>)</dt><dd><tt>Stretch a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the stretch dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Stretch a gcode linear move file. Chain stretch the gcode if it is not already stretched. If no fileName is specified, stretch the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,223 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.tower</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.tower</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/tower.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/tower.py</a></font></td></tr></table>
|
||||
<p><tt>Tower is a script to extrude a few layers up, then go across to other regions.<br>
|
||||
<br>
|
||||
The default 'Activate Tower' checkbox is off. The default is off because tower could result in the extruder collidiing with an<br>
|
||||
already extruded part of the shape and because extruding in one region for more than one layer could result in the shape<br>
|
||||
melting. When it is on, the functions described below will work, when it is off, the functions will not be called.<br>
|
||||
<br>
|
||||
This script commands the fabricator to extrude a disconnected region for a few layers, then go to another disconnected region<br>
|
||||
and extrude there. Its purpose is to reduce the number of stringers between a shape and reduce extruder travel. The important<br>
|
||||
value for the tower preferences is "Maximum Tower Height (layers)" which is the maximum number of layers that the extruder<br>
|
||||
will extrude in one region before going to another.<br>
|
||||
<br>
|
||||
Tower works by looking for islands in each layer and if it finds another island in the layer above, it goes to the next layer above<br>
|
||||
instead of going across to other regions on the original layer. It checks for collision with shapes already extruded within a cone<br>
|
||||
from the nozzle tip. The "Extruder Possible Collision Cone Angle (degrees)" preference is the angle of that cone. Realistic<br>
|
||||
values for the cone angle range between zero and ninety. The higher the angle, the less likely a collision with the rest of the<br>
|
||||
shape is, generally the extruder will stay in the region for only a few layers before a collision is detected with the wide cone.<br>
|
||||
The default angle is sixty degrees.<br>
|
||||
<br>
|
||||
The "Tower Start Layer" is the layer which the script starts extruding towers, after the last raft layer which does not have<br>
|
||||
support material. It is best to not tower at least the first layer because the temperature of the first layer should sometimes be<br>
|
||||
different than that of the other layers. The default preference is one. To run tower, in a shell type:<br>
|
||||
> python tower.py<br>
|
||||
<br>
|
||||
The following examples tower the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a terminal in the folder<br>
|
||||
which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and tower.py. The tower function will tower if 'Maximum Tower Layers' is<br>
|
||||
greater than zero, which can be set in the dialog or by changing the preferences file 'tower.csv' with a text editor or a spreadsheet<br>
|
||||
program set to separate tabs. The functions writeOutput and getTowerChainGcode check to see if the text has been towered,<br>
|
||||
if not they call the getRaftChainGcode in raft.py to raft the text; once they have the rafted text, then they tower. Pictures of<br>
|
||||
towering in action are available from the Metalab blog at:<br>
|
||||
<a href="http://reprap.soup.io/?search=towering">http://reprap.soup.io/?search=towering</a><br>
|
||||
<br>
|
||||
<br>
|
||||
> python tower.py<br>
|
||||
This brings up the dialog, after clicking 'Tower', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain towered.<br>
|
||||
The towered file is saved as Screw Holder Bottom_tower.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import tower<br>
|
||||
>>> tower.<a href="#-main">main</a>()<br>
|
||||
This brings up the tower dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> tower.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain towered.<br>
|
||||
The towered file is saved as Screw Holder Bottom_tower.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> tower.<a href="#-getTowerGcode">getTowerGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> tower.<a href="#-getTowerChainGcode">getTowerChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="math.html">math</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="skeinforge_tools.raft.html">skeinforge_tools.raft</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top><a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.tower.html#ThreadLayer">ThreadLayer</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.tower.html#TowerPreferences">TowerPreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.tower.html#TowerSkein">TowerSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="ThreadLayer">class <strong>ThreadLayer</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A layer of loops and paths.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="ThreadLayer-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Thread layer constructor.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="ThreadLayer-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this thread layer.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="TowerPreferences">class <strong>TowerPreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the tower preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="TowerPreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerPreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Tower button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="TowerSkein">class <strong>TowerSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to tower a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="TowerSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addEntireLayer"><strong>addEntireLayer</strong></a>(self, layerIndex)</dt><dd><tt>Add entire thread layer.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addGcodeFromThreadZ"><strong>addGcodeFromThreadZ</strong></a>(self, thread, z)</dt><dd><tt>Add a gcode thread to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addGcodeMovementZ"><strong>addGcodeMovementZ</strong></a>(self, point, z)</dt><dd><tt>Add a movement to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addIfTravel"><strong>addIfTravel</strong></a>(self, splitLine)</dt><dd><tt>Add travel move around loops if this the extruder is off.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addIslandLayer"><strong>addIslandLayer</strong></a>(self, threadLayer)</dt><dd><tt>Add a layer of surrounding islands.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addLayerLinesIfDifferent"><strong>addLayerLinesIfDifferent</strong></a>(self, layerIndex)</dt><dd><tt>Add gcode lines for the layer if it is different than the old bottom layer index.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addShutdownToOutput"><strong>addShutdownToOutput</strong></a>(self)</dt><dd><tt>Add shutdown gcode to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addToExtrusion"><strong>addToExtrusion</strong></a>(self, location)</dt><dd><tt>Add a location to the thread.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-addTowers"><strong>addTowers</strong></a>(self)</dt><dd><tt>Add towers.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-climbTower"><strong>climbTower</strong></a>(self, removedIsland)</dt><dd><tt>Climb up the island to any islands directly above.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-getBottomLayerIndex"><strong>getBottomLayerIndex</strong></a>(self)</dt><dd><tt>Get the index of the first island layer which has islands.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-isInsideRemovedOutsideCone"><strong>isInsideRemovedOutsideCone</strong></a>(self, island, removedBoundingLoop, untilLayerIndex)</dt><dd><tt>Determine if the island is entirely inside the removed bounding loop and outside the collision cone of the remaining islands.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-linearMove"><strong>linearMove</strong></a>(self, splitLine)</dt><dd><tt>Add a linear move to the loop.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, towerPreferences)</dt><dd><tt>Parse gcode text and store the tower gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-parseLine"><strong>parseLine</strong></a>(self, lineIndex)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="TowerSkein-parseUntilOperatingLayer"><strong>parseUntilOperatingLayer</strong></a>(self)</dt><dd><tt>Parse gcode until the operating layer if there is one.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getTowerChainGcode"><strong>getTowerChainGcode</strong></a>(fileName, gcodeText, towerPreferences<font color="#909090">=None</font>)</dt><dd><tt>Tower a gcode linear move text. Chain tower the gcode if it is not already towered.</tt></dd></dl>
|
||||
<dl><dt><a name="-getTowerGcode"><strong>getTowerGcode</strong></a>(gcodeText, towerPreferences<font color="#909090">=None</font>)</dt><dd><tt>Tower a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the tower dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-transferFillLoops"><strong>transferFillLoops</strong></a>(fillLoops, surroundingLoop)</dt><dd><tt>Transfer fill loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-transferFillLoopsToSurroundingLoops"><strong>transferFillLoopsToSurroundingLoops</strong></a>(fillLoops, surroundingLoops)</dt><dd><tt>Transfer fill loops to surrounding loops.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Tower a gcode linear move file. Chain tower the gcode if it is not already towered.<br>
|
||||
If no fileName is specified, tower the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,158 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.unpause</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.unpause</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/unpause.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/unpause.py</a></font></td></tr></table>
|
||||
<p><tt>Unpause is a script to speed up a line segment to compensate for the delay of the microprocessor.<br>
|
||||
<br>
|
||||
The default 'Activate Unpause' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
The unpause script is based on the Shane Hathaway's patch to speed up a line segment to compensate for the delay of the<br>
|
||||
microprocessor. The description is at:<br>
|
||||
<a href="http://shane.willowrise.com/archives/delay-compensation-in-firmware/">http://shane.willowrise.com/archives/delay-compensation-in-firmware/</a><br>
|
||||
<br>
|
||||
The "Delay (milliseconds)" preference is the delay on the microprocessor that will be at least partially compensated for. The<br>
|
||||
default is 28 milliseconds, which Shane found for the Arduino. The "Maximum Speed" ratio is the maximum amount that the<br>
|
||||
feedrate will be sped up to, compared to the original feedrate, the default is 1.5.<br>
|
||||
<br>
|
||||
To run unpause, in a shell type:<br>
|
||||
> python unpause.py<br>
|
||||
<br>
|
||||
The following examples unpause the files Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains<br>
|
||||
Screw Holder Bottom.stl & unpause.py. The function writeOutput checks to see if the text has been unpaused, if not they call<br>
|
||||
getFilletChainGcode in fillet.py to fillet the text; once they have the filleted text, then it unpauses.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python unpause.py<br>
|
||||
This brings up the dialog, after clicking 'Unpause', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain unpaused.<br>
|
||||
The unpaused file is saved as Screw Holder Bottom_unpause.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import unpause<br>
|
||||
>>> unpause.<a href="#-main">main</a>()<br>
|
||||
This brings up the unpause dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> unpause.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain unpaused.<br>
|
||||
The unpaused file is saved as Screw Holder Bottom_unpause.gcode<br>
|
||||
<br>
|
||||
The equation to set the feedrate is from Shane Hathaway's description at:<br>
|
||||
<a href="http://shane.willowrise.com/archives/delay-compensation-in-firmware/">http://shane.willowrise.com/archives/delay-compensation-in-firmware/</a></tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.fillet.html">skeinforge_tools.fillet</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.intercircle.html">skeinforge_tools.skeinforge_utilities.intercircle</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
</td><td width="25%" valign=top><a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.unpause.html#UnpausePreferences">UnpausePreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.unpause.html#UnpauseSkein">UnpauseSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="UnpausePreferences">class <strong>UnpausePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the unpause preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="UnpausePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpausePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Unpause button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="UnpauseSkein">class <strong>UnpauseSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to unpause a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="UnpauseSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-getLinearMoveWithFeedrate"><strong>getLinearMoveWithFeedrate</strong></a>(self, feedrate, location)</dt><dd><tt>Get a linear move line with the feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-getUnpausedFeedrateMinute"><strong>getUnpausedFeedrateMinute</strong></a>(self, location, splitLine)</dt><dd><tt>Get the feedrate which will compensate for the pause.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-getUnpausedLine"><strong>getUnpausedLine</strong></a>(self, splitLine)</dt><dd><tt>Bevel a linear move.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-parseGcode"><strong>parseGcode</strong></a>(self, unpausePreferences, gcodeText)</dt><dd><tt>Parse gcode text and store the unpause gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-parseInitialization"><strong>parseInitialization</strong></a>(self)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="UnpauseSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getSelectedPlugin"><strong>getSelectedPlugin</strong></a>(unpausePreferences)</dt><dd><tt>Get the selected plugin.</tt></dd></dl>
|
||||
<dl><dt><a name="-getUnpauseChainGcode"><strong>getUnpauseChainGcode</strong></a>(fileName, gcodeText, unpausePreferences<font color="#909090">=None</font>)</dt><dd><tt>Unpause a gcode linear move text. Chain unpause the gcode if it is not already unpaused.</tt></dd></dl>
|
||||
<dl><dt><a name="-getUnpauseGcode"><strong>getUnpauseGcode</strong></a>(gcodeText, unpausePreferences<font color="#909090">=None</font>)</dt><dd><tt>Unpause a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the unpause dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Unpause a gcode linear move file. Chain unpause the gcode if it is not already unpaused. If no fileName is specified, unpause the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,181 @@
|
||||
|
||||
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><title>Python: module skeinforge_tools.wipe</title>
|
||||
</head><body bgcolor="#f0f0f8">
|
||||
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_tools.html"><font color="#ffffff">skeinforge_tools</font></a>.wipe</strong></big></big> ($Date: 2008/21/04 $)</font></td
|
||||
><td align=right valign=bottom
|
||||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/wipe.py">/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/wipe.py</a></font></td></tr></table>
|
||||
<p><tt>Wipe is a script to wipe the nozzle.<br>
|
||||
<br>
|
||||
At the beginning of a layer, depending on the preferences, wipe will move the nozzle with the extruder off to the arrival point,<br>
|
||||
then to the wipe point, then to the departure point, then back to the layer.<br>
|
||||
<br>
|
||||
The default 'Activate Wipe' checkbox is on. When it is on, the functions described below will work, when it is off, the functions<br>
|
||||
will not be called.<br>
|
||||
<br>
|
||||
The "Location Arrival X" preference, is the x coordinate of the arrival location. The "Location Arrival Y" and "Location Arrival Z"<br>
|
||||
preferences are the y & z coordinates of the location. The equivalent "Location Wipe.." and "Location Departure.." preferences<br>
|
||||
are for the wipe and departure locations.<br>
|
||||
<br>
|
||||
The "Wipe Period (layers)" preference is the number of layers between wipes. Wipe will always wipe just before the first layer,<br>
|
||||
afterwards it will wipe every "Wipe Period" layers. With the default of three, wipe will wipe just before the zeroth layer, the<br>
|
||||
third layer, sixth layer and so on.<br>
|
||||
<br>
|
||||
To run wipe, in a shell which wipe is in type:<br>
|
||||
> python wipe.py<br>
|
||||
<br>
|
||||
The following examples wipes the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl. The examples are run in a<br>
|
||||
terminal in the folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and wipe.py. The wipe function<br>
|
||||
will wipe if the 'Activate Wipe' checkbox is on. The functions writeOutput and getWipeChainGcode check to see if the text<br>
|
||||
has been wiped, if not they call the getHopChainGcode in hop.py to hop the text; once they have the hopped text, then they<br>
|
||||
wipe.<br>
|
||||
<br>
|
||||
<br>
|
||||
> python wipe.py<br>
|
||||
This brings up the dialog, after clicking 'Wipe', the following is printed:<br>
|
||||
File Screw Holder Bottom.stl is being chain wiped.<br>
|
||||
The wiped file is saved as Screw Holder Bottom_wipe.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python wipe.py Screw Holder Bottom.stl<br>
|
||||
File Screw Holder Bottom.stl is being chain wiped.<br>
|
||||
The wiped file is saved as Screw Holder Bottom_wipe.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
> python<br>
|
||||
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)<br>
|
||||
[GCC 4.2.1 (SUSE Linux)] on linux2<br>
|
||||
Type "help", "copyright", "credits" or "license" for more information.<br>
|
||||
>>> import wipe<br>
|
||||
>>> wipe.<a href="#-main">main</a>()<br>
|
||||
This brings up the wipe dialog.<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> wipe.<a href="#-writeOutput">writeOutput</a>()<br>
|
||||
File Screw Holder Bottom.stl is being chain wiped.<br>
|
||||
The wiped file is saved as Screw Holder Bottom_wipe.gcode<br>
|
||||
<br>
|
||||
<br>
|
||||
>>> wipe.<a href="#-getWipeGcode">getWipeGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
Many line of wiped gcode.<br>
|
||||
<br>
|
||||
>>> wipe.<a href="#-getWipeChainGcode">getWipeChainGcode</a>("<br>
|
||||
( GCode generated by May 8, 2008 carve.py )<br>
|
||||
( Extruder Initialization )<br>
|
||||
..<br>
|
||||
many lines of gcode<br>
|
||||
..<br>
|
||||
")<br>
|
||||
Many line of wiped gcode.</tt></p>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#aa55cc">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
|
||||
<a href="skeinforge_tools.analyze.html">skeinforge_tools.analyze</a><br>
|
||||
<a href="cStringIO.html">cStringIO</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.euclidean.html">skeinforge_tools.skeinforge_utilities.euclidean</a><br>
|
||||
<a href="skeinforge_tools.skeinforge_utilities.gcodec.html">skeinforge_tools.skeinforge_utilities.gcodec</a><br>
|
||||
<a href="skeinforge_tools.hop.html">skeinforge_tools.hop</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.interpret.html">skeinforge_tools.skeinforge_utilities.interpret</a><br>
|
||||
<a href="math.html">math</a><br>
|
||||
<a href="skeinforge_tools.polyfile.html">skeinforge_tools.polyfile</a><br>
|
||||
</td><td width="25%" valign=top><a href="skeinforge_tools.skeinforge_utilities.preferences.html">skeinforge_tools.skeinforge_utilities.preferences</a><br>
|
||||
<a href="sys.html">sys</a><br>
|
||||
<a href="time.html">time</a><br>
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ee77aa">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl>
|
||||
<dt><font face="helvetica, arial"><a href="skeinforge_tools.wipe.html#WipePreferences">WipePreferences</a>
|
||||
</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_tools.wipe.html#WipeSkein">WipeSkein</a>
|
||||
</font></dt></dl>
|
||||
<p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="WipePreferences">class <strong>WipePreferences</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to handle the wipe preferences.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="WipePreferences-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default preferences, execute title & preferences fileName.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipePreferences-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Wipe button has been clicked.</tt></dd></dl>
|
||||
|
||||
</td></tr></table> <p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#ffc8d8">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#000000" face="helvetica, arial"><a name="WipeSkein">class <strong>WipeSkein</strong></a></font></td></tr>
|
||||
|
||||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||||
<td colspan=2><tt>A class to wipe a skein of extrusions.<br> </tt></td></tr>
|
||||
<tr><td> </td>
|
||||
<td width="100%">Methods defined here:<br>
|
||||
<dl><dt><a name="WipeSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-addHop"><strong>addHop</strong></a>(self, begin, end)</dt><dd><tt>Add hop to highest point.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-addWipeTravel"><strong>addWipeTravel</strong></a>(self, splitLine)</dt><dd><tt>Add the wipe travel gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-getLinearMoveWithFeedrate"><strong>getLinearMoveWithFeedrate</strong></a>(self, feedrate, location)</dt><dd><tt>Get a linear move line with the feedrate.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-getRounded"><strong>getRounded</strong></a>(self, number)</dt><dd><tt>Get number rounded to the number of carried decimal places as a string.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-parseGcode"><strong>parseGcode</strong></a>(self, gcodeText, wipePreferences)</dt><dd><tt>Parse gcode text and store the wipe gcode.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-parseInitialization"><strong>parseInitialization</strong></a>(self, wipePreferences)</dt><dd><tt>Parse gcode initialization and store the parameters.</tt></dd></dl>
|
||||
|
||||
<dl><dt><a name="WipeSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line and add it to the bevel gcode.</tt></dd></dl>
|
||||
|
||||
</td></tr></table></td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#eeaa77">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><dl><dt><a name="-getWipeChainGcode"><strong>getWipeChainGcode</strong></a>(fileName, gcodeText, wipePreferences<font color="#909090">=None</font>)</dt><dd><tt>Wipe a gcode linear move text. Chain wipe the gcode if it is not already wiped.</tt></dd></dl>
|
||||
<dl><dt><a name="-getWipeGcode"><strong>getWipeGcode</strong></a>(gcodeText, wipePreferences<font color="#909090">=None</font>)</dt><dd><tt>Wipe a gcode linear move text.</tt></dd></dl>
|
||||
<dl><dt><a name="-main"><strong>main</strong></a>(hashtable<font color="#909090">=None</font>)</dt><dd><tt>Display the wipe dialog.</tt></dd></dl>
|
||||
<dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName<font color="#909090">=''</font>)</dt><dd><tt>Wipe a gcode linear move file. Chain wipe the gcode if it is not already wiped. If no fileName is specified, wipe the first unmodified gcode file in this folder.</tt></dd></dl>
|
||||
</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#55aa55">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
||||
<td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
|
||||
<strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
|
||||
<strong>__license__</strong> = 'GPL 3.0'<br>
|
||||
<strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p>
|
||||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
||||
<tr bgcolor="#7799ee">
|
||||
<td colspan=3 valign=bottom> <br>
|
||||
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
||||
|
||||
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
||||
<td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>
|
||||
</body></html>
|
||||
@@ -0,0 +1,3 @@
|
||||
Format is tab separated preferences.
|
||||
Open File to be Analyzed
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,32 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Behold False
|
||||
Band Height (layers): 5
|
||||
Bottom Band Brightness (ratio): 0.7
|
||||
Bottom Layer Brightness (ratio): 1.0
|
||||
From the Bottom False
|
||||
From the Top True
|
||||
Draw Arrows True
|
||||
Open File to Behold
|
||||
Go Around Extruder Off Travel False
|
||||
Layers From (index): 0
|
||||
Layers To (index): 999999
|
||||
Number of Fill Bottom Layers (integer): 1
|
||||
Number of Fill Top Layers (integer): 1
|
||||
Pixels over Extrusion Width (ratio): 10.0
|
||||
Screen Horizontal Inset (pixels): 100
|
||||
Screen Vertical Inset (pixels): 50
|
||||
Viewpoint Latitude (degrees): 45.0
|
||||
Viewpoint Longitude (degrees): 210.0
|
||||
Width of Extrusion Thread (pixels): 1
|
||||
Width of Fill Bottom Thread (pixels): 3
|
||||
Width of Fill Top Thread (pixels): 3
|
||||
Width of Loop Thread (pixels): 3
|
||||
Width of Perimeter Inside Thread (pixels): 4
|
||||
Width of Perimeter Outside Thread (pixels): 4
|
||||
Width of Raft Thread (pixels): 1
|
||||
Width of Travel Thread (pixels): 0
|
||||
Width of X Axis (pixels): 5
|
||||
Width of Y Axis (pixels): 5
|
||||
Width of Z Axis (pixels): 5
|
||||
windowPositionBehold Dynamic Preferences 0+0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,12 @@
|
||||
Format is tab separated preferences.
|
||||
Extrusion Width over Thickness (ratio): 1.45
|
||||
Open File to be Carved
|
||||
Import Coarseness (ratio): 1.0
|
||||
Correct Mesh True
|
||||
Unproven Mesh False
|
||||
Infill Bridge Thickness over Layer Thickness (ratio): 1.0
|
||||
Infill Bridge Width over Extrusion Width (ratio): 1.0
|
||||
Infill in Direction of Bridges True
|
||||
Layer Thickness (mm): 0.36
|
||||
Layer Thickness over Precision (ratio): 10.0
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,5 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Clip True
|
||||
Clip Over Extrusion Width (ratio): 0.18
|
||||
Open File to be Clipped
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,7 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Comb True
|
||||
Arrival Inset Follow Distance over Extrusion Width (ratio): 3.0
|
||||
Jitter Over Extrusion Width (ratio): 10.0
|
||||
Minimum Perimeter Departure Distance over Extrusion Width (ratio): 5.0
|
||||
Open File to be Combed
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
@@ -0,0 +1,4 @@
|
||||
Format is tab separated preferences.
|
||||
Activate Comment False
|
||||
Open File to Write Comments for
|
||||
windowPositionBehold Preferences 0+0
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user