Release of 2015-03-15 :

Modification :
	Cut in two parts TAB "Points" and TAB "Axis"

Addition :
	into "Ori. Pref." TAB :
		bi Color flag		
			Change the successive lines to be bicolor (red and white) for 
			the following functions:
				- in "Axis 1/2" TAB:
					Axes=Cut(Wire)
				- in "Circle" TAB:
					Arcs=Cut(Circle) 

	into "Points 1/2" TAB :
			Points = Cut (wire)
				Create Points by Partition:
				Cut the selected wire(s) in 2(n) parts and create 2(n) Points 
				with function discretize.
				The number indicates in how many parts to cut.
				Wires can be:
					Line
					Circle
					Arc
					Ellipse
				An object must also be seleted but before any Wire to cut
				 all his edges! 

	into "Axis 1/2" TAB :							
	         	Axes=Cut(Wire)
				Create Axes by Partition:
				Cut the selected wire(s) in 2(n) parts and create 2(n) Axes 
				with function discretize.
				The number indicates in how many parts to cut.
				Wires can be:
					Line
					Circle
					Arc
					Ellipse
				An object must also be seleted but before any Wire to cut all 
				his Edges!
				NB: You can change the successive lines to be bicolor 
				(red and white) in "Ori. Pref." TAB 
into "Check" TAB :
			Clearance ?
				Check for two Objects Clearance distance:
				Quick measurements between parallel faces and similarly placed objects
				- Select the 2 Objects and Click this button
This commit is contained in:
Rentlau 2015-03-17 18:56:47 +01:00
parent e9e21dfea4
commit 62d4e30670
7 changed files with 3942 additions and 1385 deletions

View File

@ -0,0 +1,306 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2918"
sodipodi:version="0.32"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="WF_check.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1">
<defs
id="defs2920">
<linearGradient
id="linearGradient3144">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144"
id="radialGradient3183"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 32 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="64 : 32 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective2926" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-6"
id="radialGradient4272"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4135-3"
id="linearGradient4145-1"
x1="131.82286"
y1="101.22672"
x2="191.3165"
y2="101.22672"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient4135-3">
<stop
style="stop-color:#0079ff;stop-opacity:1;"
offset="0"
id="stop4137-9" />
<stop
style="stop-color:#0079ff;stop-opacity:0;"
offset="1"
id="stop4139-2" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4135-3-5"
id="linearGradient4145-1-8"
x1="131.82286"
y1="101.22672"
x2="191.3165"
y2="101.22672"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient4135-3-5">
<stop
style="stop-color:#0079ff;stop-opacity:1;"
offset="0"
id="stop4137-9-3" />
<stop
style="stop-color:#0079ff;stop-opacity:0;"
offset="1"
id="stop4139-2-7" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4558-0"
xlink:href="#linearGradient3144-6-2"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6-2">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2-4" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5-6" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4558-7"
xlink:href="#linearGradient3144-6-9"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6-9">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5-7" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9"
id="radialGradient3191"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9-3"
id="radialGradient4852-4"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9-3">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7-5" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2-7" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9-4"
id="radialGradient4852-9"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9-4">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2-9" />
</linearGradient>
<linearGradient
id="linearGradient3144-90">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-5" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-9" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.8052272"
inkscape:cx="11.208856"
inkscape:cy="34.580256"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1261"
inkscape:window-height="625"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="0" />
<metadata
id="metadata2923">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<g
id="g3177"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,83.957793,125.97476)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<g
id="g3177-3"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,160.08538,105.57482)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<g
id="g3177-8"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,15.547363,136.84759)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<text
xml:space="preserve"
style="font-size:64px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f30000;fill-opacity:1;stroke:#000000;stroke-opacity:1;font-family:Sans;-inkscape-font-specification:Sans Bold"
x="14.716597"
y="55.590515"
id="text4593"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan4595"
x="14.716597"
y="55.590515">?</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -0,0 +1,346 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2918"
sodipodi:version="0.32"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="WF_cutWireAxes.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1">
<defs
id="defs2920">
<linearGradient
id="linearGradient3144">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144"
id="radialGradient3183"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 32 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="64 : 32 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective2926" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-6"
id="radialGradient4272"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4135-3"
id="linearGradient4145-1"
x1="131.82286"
y1="101.22672"
x2="191.3165"
y2="101.22672"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient4135-3">
<stop
style="stop-color:#0079ff;stop-opacity:1;"
offset="0"
id="stop4137-9" />
<stop
style="stop-color:#0079ff;stop-opacity:0;"
offset="1"
id="stop4139-2" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4135-3-5"
id="linearGradient4145-1-8"
x1="131.82286"
y1="101.22672"
x2="191.3165"
y2="101.22672"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient4135-3-5">
<stop
style="stop-color:#0079ff;stop-opacity:1;"
offset="0"
id="stop4137-9-3" />
<stop
style="stop-color:#0079ff;stop-opacity:0;"
offset="1"
id="stop4139-2-7" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4558-0"
xlink:href="#linearGradient3144-6-2"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6-2">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2-4" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5-6" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4558-7"
xlink:href="#linearGradient3144-6-9"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6-9">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5-7" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9"
id="radialGradient3191"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9-3"
id="radialGradient4852-4"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9-3">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7-5" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2-7" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9-4"
id="radialGradient4852-9"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9-4">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2-9" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-90"
id="radialGradient3191-1"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-90">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-5" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-9" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-90"
id="radialGradient4534"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.8052272"
inkscape:cx="11.208856"
inkscape:cy="34.580256"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1261"
inkscape:window-height="625"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="0" />
<metadata
id="metadata2923">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<path
sodipodi:nodetypes="ssczsszcss"
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:0.58469944;fill-rule:nonzero;stroke:none;stroke-width:5.80000019;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="m 36.095301,10.79445 c -14.572107,0 -26.4003254,11.828221 -26.4003254,26.400317 0,14.572099 11.8282184,26.400321 26.4003254,26.400321 C 59.646757,61.362591 62.760663,42.0498 61.204289,31.951993 59.647915,21.854186 48.682476,10.79445 36.095301,10.79445 z m -0.209925,5.216174 c 9.912376,-2e-6 17.652953,6.523961 20.55437,16.027296 2.901416,9.503335 -3.835334,25.936347 -20.55437,26.340991 -11.693122,2e-6 -21.184144,-9.491013 -21.184144,-21.184144 0,-11.693129 9.491022,-21.184143 21.184144,-21.184143 z"
id="path4439" />
<path
style="fill:#0079ff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.84700072;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="m 32.061173,3.4361513 c -14.572107,0 -26.4003249,11.8282207 -26.4003249,26.4003167 0,14.5721 11.8282179,26.400318 26.4003249,26.400318 14.572091,0 26.400295,-11.828217 26.40031,-26.400318 l -0.01373,-0.725609 C 58.054587,14.798947 46.378434,3.4361513 32.061143,3.4361513 z m -0.20994,5.216173 c 11.488688,-10e-7 20.859524,9.1156577 21.175017,20.6000057 l 0.0092,0.584138 c 0,11.693134 -9.491023,21.184145 -21.184159,21.184145 -11.693122,1e-6 -21.18413,-9.491014 -21.18413,-21.184145 0,-11.693129 9.491008,-21.1841437 21.18413,-21.1841437 z"
id="path4425"
inkscape:connector-curvature="0" />
<g
id="g3177"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,83.957793,125.97476)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<g
id="g3177-3"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,160.08538,105.57482)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<path
style="fill:#fcaf3e;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.8928616;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="M 6.5901961,22.093833 48.042929,9.3191543 50.116177,16.590313 7.8803781,29.299941 z"
id="rect3520-5"
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0" />
<path
style="fill:#fcaf3e;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.88835073;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="M 5.1628631,27.93605 35.264959,56.083625 39.863281,49.600419 9.0727501,21.226754 z"
id="rect3520-5-2"
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0" />
<g
id="g3177-8"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,15.547363,136.84759)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<path
style="fill:#fcaf3e;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.94555938;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="M 53.073104,13.766079 40.015802,56.013874 32.102514,53.454144 45.687679,10.589248 z"
id="rect3520-5-2-5"
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,401 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2918"
sodipodi:version="0.32"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="WF_cutWirePoints.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1">
<defs
id="defs2920">
<linearGradient
id="linearGradient3144">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144"
id="radialGradient3183"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 32 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="64 : 32 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective2926" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-6"
id="radialGradient4272"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4135-3"
id="linearGradient4145-1"
x1="131.82286"
y1="101.22672"
x2="191.3165"
y2="101.22672"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient4135-3">
<stop
style="stop-color:#0079ff;stop-opacity:1;"
offset="0"
id="stop4137-9" />
<stop
style="stop-color:#0079ff;stop-opacity:0;"
offset="1"
id="stop4139-2" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4135-3-5"
id="linearGradient4145-1-8"
x1="131.82286"
y1="101.22672"
x2="191.3165"
y2="101.22672"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient4135-3-5">
<stop
style="stop-color:#0079ff;stop-opacity:1;"
offset="0"
id="stop4137-9-3" />
<stop
style="stop-color:#0079ff;stop-opacity:0;"
offset="1"
id="stop4139-2-7" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4558-0"
xlink:href="#linearGradient3144-6-2"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6-2">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2-4" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5-6" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4558-7"
xlink:href="#linearGradient3144-6-9"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-6-9">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-2-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-5-7" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9"
id="radialGradient3191"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9"
id="radialGradient4852"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9-3"
id="radialGradient4852-4"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9-3">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7-5" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2-7" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4889"
xlink:href="#linearGradient3144-9-3"
inkscape:collect="always" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-9-4"
id="radialGradient4852-9"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
id="linearGradient3144-9-4">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-7-7" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-2-9" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4929"
xlink:href="#linearGradient3144-9-4"
inkscape:collect="always" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.8052272"
inkscape:cx="11.208856"
inkscape:cy="34.580256"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1261"
inkscape:window-height="625"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="0" />
<metadata
id="metadata2923">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<path
style="fill:#000000;fill-opacity:0.58431373;fill-rule:nonzero;stroke:none;stroke-width:0.84700072;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="M 61.686097,12.605954 C 47.575831,5.9477936 41.532403,7.4033507 34.021557,9.5095337 26.510711,11.615716 13.736469,20.288763 13.736469,36.014212 c 0,15.725453 10.856014,29.057045 25.096312,29.057044 L 38.291694,58.591444 C 24.31059,55.755483 19.803555,46.07108 20.667459,34.879827 21.531363,23.688574 27.842568,17.232061 36.863995,14.529764 c 9.021443,-2.702295 15.923804,0.81409 20.78631,3.38262 z"
id="path4425-9-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czscczzcc" />
<g
id="g3177"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,83.957793,125.97476)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<path
style="fill:#0079ff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.84700072;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="M 49.668533,9.4590257 C 37.336943,3.2891957 32.055323,4.6379977 25.491261,6.5897067 18.927199,8.5414147 7.7632196,16.578353 7.7632196,31.150449 c 0,14.5721 9.4875534,26.925912 21.9327834,26.925911 l -0.47288,-6.004562 C 17.004414,49.443835 13.065516,40.469716 13.82052,30.099264 c 0.755004,-10.370452 6.729987,-16.840468 14.614213,-19.34457 7.88424,-2.5041013 14.14619,-0.219706 18.39575,2.16044 z"
id="path4425-9"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czscczzcc" />
<g
id="g3177-3"
transform="matrix(-0.1459885,0.00366916,-0.00366916,-0.1459885,160.08538,105.57482)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141" />
<g
id="g3185"
transform="matrix(-0.14592237,0.00572413,-0.00572413,-0.14592237,45.127333,118.38699)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141">
<path
d="m 245.71428,655.2193 c 0,26.82526 -21.74617,48.57143 -48.57143,48.57143 -26.82526,0 -48.57143,-21.74617 -48.57143,-48.57143 0,-26.82526 21.74617,-48.57143 48.57143,-48.57143 26.82526,0 48.57143,21.74617 48.57143,48.57143 z"
sodipodi:ry="48.57143"
sodipodi:rx="48.57143"
sodipodi:cy="655.2193"
sodipodi:cx="197.14285"
id="path3187"
style="fill:#fcaf3e;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5.79999971;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
sodipodi:type="arc" />
<path
transform="matrix(0.8513023,-0.5246754,0.5246754,0.8513023,-338.69692,214.19328)"
d="m 259.60921,672.79736 c 0,13.24993 -15.37686,23.99113 -34.34519,23.99113 -18.96832,0 -34.34519,-10.7412 -34.34519,-23.99113 0,-13.24993 15.37687,-23.99112 34.34519,-23.99112 18.96833,0 34.34519,10.74119 34.34519,23.99112 z"
sodipodi:ry="23.991123"
sodipodi:rx="34.345188"
sodipodi:cy="672.79736"
sodipodi:cx="225.26402"
id="path3189"
style="fill:url(#radialGradient4852);fill-opacity:1;stroke:none"
sodipodi:type="arc" />
</g>
<g
id="g3185-6"
transform="matrix(-0.14592237,0.00572413,-0.00572413,-0.14592237,78.507483,104.87221)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141">
<path
d="m 245.71428,655.2193 c 0,26.82526 -21.74617,48.57143 -48.57143,48.57143 -26.82526,0 -48.57143,-21.74617 -48.57143,-48.57143 0,-26.82526 21.74617,-48.57143 48.57143,-48.57143 26.82526,0 48.57143,21.74617 48.57143,48.57143 z"
sodipodi:ry="48.57143"
sodipodi:rx="48.57143"
sodipodi:cy="655.2193"
sodipodi:cx="197.14285"
id="path3187-2"
style="fill:#fcaf3e;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5.79999971;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
sodipodi:type="arc" />
<path
transform="matrix(0.8513023,-0.5246754,0.5246754,0.8513023,-338.69692,214.19328)"
d="m 259.60921,672.79736 c 0,13.24993 -15.37686,23.99113 -34.34519,23.99113 -18.96832,0 -34.34519,-10.7412 -34.34519,-23.99113 0,-13.24993 15.37687,-23.99112 34.34519,-23.99112 18.96833,0 34.34519,10.74119 34.34519,23.99112 z"
sodipodi:ry="23.991123"
sodipodi:rx="34.345188"
sodipodi:cy="672.79736"
sodipodi:cx="225.26402"
id="path3189-5"
style="fill:url(#radialGradient4889);fill-opacity:1;stroke:none"
sodipodi:type="arc" />
</g>
<g
id="g3185-66"
transform="matrix(-0.14592237,0.00572413,-0.00572413,-0.14592237,61.162923,149.54761)"
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/circle.png"
inkscape:export-xdpi="7.2934141"
inkscape:export-ydpi="7.2934141">
<path
d="m 245.71428,655.2193 c 0,26.82526 -21.74617,48.57143 -48.57143,48.57143 -26.82526,0 -48.57143,-21.74617 -48.57143,-48.57143 0,-26.82526 21.74617,-48.57143 48.57143,-48.57143 26.82526,0 48.57143,21.74617 48.57143,48.57143 z"
sodipodi:ry="48.57143"
sodipodi:rx="48.57143"
sodipodi:cy="655.2193"
sodipodi:cx="197.14285"
id="path3187-5"
style="fill:#fcaf3e;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:5.79999971;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
sodipodi:type="arc" />
<path
transform="matrix(0.8513023,-0.5246754,0.5246754,0.8513023,-338.69692,214.19328)"
d="m 259.60921,672.79736 c 0,13.24993 -15.37686,23.99113 -34.34519,23.99113 -18.96832,0 -34.34519,-10.7412 -34.34519,-23.99113 0,-13.24993 15.37687,-23.99112 34.34519,-23.99112 18.96833,0 34.34519,10.74119 34.34519,23.99112 z"
sodipodi:ry="23.991123"
sodipodi:rx="34.345188"
sodipodi:cy="672.79736"
sodipodi:cx="225.26402"
id="path3189-0"
style="fill:url(#radialGradient4929);fill-opacity:1;stroke:none"
sodipodi:type="arc" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,721 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2816"
version="1.1"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="WF_isClearance.svg"
sodipodi:version="0.32"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/yorik/PartDesign_Pocket.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2818">
<linearGradient
inkscape:collect="always"
id="linearGradient4286">
<stop
style="stop-color:#223602;stop-opacity:1;"
offset="0"
id="stop4288" />
<stop
style="stop-color:#223602;stop-opacity:0;"
offset="1"
id="stop4290" />
</linearGradient>
<linearGradient
id="linearGradient5238">
<stop
id="stop5240"
offset="0"
style="stop-color:#001ccc;stop-opacity:1;" />
<stop
id="stop5242"
offset="1"
style="stop-color:#00afff;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient3669">
<stop
style="stop-color:#001ccc;stop-opacity:1;"
offset="0"
id="stop3671" />
<stop
style="stop-color:#00afff;stop-opacity:1;"
offset="1"
id="stop3673" />
</linearGradient>
<linearGradient
id="linearGradient3602">
<stop
style="stop-color:#ff2600;stop-opacity:1;"
offset="0"
id="stop3604" />
<stop
style="stop-color:#ff5f00;stop-opacity:1;"
offset="1"
id="stop3606" />
</linearGradient>
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="2.4748738 : 30.232233 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="66.474874 : 30.232233 : 1"
inkscape:persp3d-origin="34.474874 : 19.565566 : 1"
id="perspective2824" />
<inkscape:perspective
id="perspective3618"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3602-7"
id="linearGradient3608-5"
x1="3.909091"
y1="14.363636"
x2="24.81818"
y2="14.363636"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3602-7">
<stop
style="stop-color:#c51900;stop-opacity:1;"
offset="0"
id="stop3604-1" />
<stop
style="stop-color:#ff5f00;stop-opacity:1;"
offset="1"
id="stop3606-3" />
</linearGradient>
<inkscape:perspective
id="perspective3677"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3602-5"
id="linearGradient3608-1"
x1="3.909091"
y1="14.363636"
x2="24.81818"
y2="14.363636"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3602-5">
<stop
style="stop-color:#c51900;stop-opacity:1;"
offset="0"
id="stop3604-9" />
<stop
style="stop-color:#ff5f00;stop-opacity:1;"
offset="1"
id="stop3606-9" />
</linearGradient>
<linearGradient
y2="14.363636"
x2="24.81818"
y1="14.363636"
x1="3.909091"
gradientUnits="userSpaceOnUse"
id="linearGradient3686"
xlink:href="#linearGradient3602-5"
inkscape:collect="always" />
<inkscape:perspective
id="perspective3717"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3602-58"
id="linearGradient3608-8"
x1="3.909091"
y1="14.363636"
x2="24.81818"
y2="14.363636"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3602-58">
<stop
style="stop-color:#d82b1e;stop-opacity:1;"
offset="0"
id="stop3604-2" />
<stop
style="stop-color:#840000;stop-opacity:1;"
offset="1"
id="stop3606-2" />
</linearGradient>
<linearGradient
y2="14.363636"
x2="24.81818"
y1="14.363636"
x1="3.909091"
gradientUnits="userSpaceOnUse"
id="linearGradient3726"
xlink:href="#linearGradient3602-58"
inkscape:collect="always" />
<inkscape:perspective
id="perspective4410"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective4944"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective4966"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective5009"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective5165"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7581"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7606"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7638"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7660"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7704"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7730"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7762"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7783"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7843"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7881"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7932"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2866"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2878"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
id="linearGradient3602-1">
<stop
style="stop-color:#ff2600;stop-opacity:1;"
offset="0"
id="stop3604-8" />
<stop
style="stop-color:#ff5f00;stop-opacity:1;"
offset="1"
id="stop3606-96" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3602-1"
id="linearGradient2875"
gradientUnits="userSpaceOnUse"
x1="3.909091"
y1="14.363636"
x2="24.81818"
y2="14.363636" />
<inkscape:perspective
id="perspective2885"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
id="linearGradient3602-1-5">
<stop
style="stop-color:#ff2600;stop-opacity:1;"
offset="0"
id="stop3604-8-3" />
<stop
style="stop-color:#ff5f00;stop-opacity:1;"
offset="1"
id="stop3606-96-8" />
</linearGradient>
<inkscape:perspective
id="perspective3720"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
id="linearGradient3602-1-8">
<stop
style="stop-color:#ff2600;stop-opacity:1;"
offset="0"
id="stop3604-8-5" />
<stop
style="stop-color:#ff5f00;stop-opacity:1;"
offset="1"
id="stop3606-96-2" />
</linearGradient>
<inkscape:perspective
id="perspective3822"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective3849"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective3879"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2896"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2925"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2925-4"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective3726"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective3689"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
id="linearGradient3669-2">
<stop
style="stop-color:#af7d00;stop-opacity:1;"
offset="0"
id="stop3671-7" />
<stop
style="stop-color:#ffed00;stop-opacity:1;"
offset="1"
id="stop3673-5" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.73872768,0,0,1.3536788,-2.25,-1.9999999)"
y2="1.8468192"
x2="48.259949"
y1="33.61211"
x1="34.290413"
gradientUnits="userSpaceOnUse"
id="linearGradient3698"
xlink:href="#linearGradient3669-2"
inkscape:collect="always" />
<inkscape:perspective
id="perspective3689-6"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
id="linearGradient3669-22">
<stop
style="stop-color:#af7d00;stop-opacity:1;"
offset="0"
id="stop3671-8" />
<stop
style="stop-color:#ffed00;stop-opacity:1;"
offset="1"
id="stop3673-4" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.73872768,0,0,1.3536788,-2.25,-1.9999999)"
y2="1.8468192"
x2="48.259949"
y1="33.61211"
x1="34.290413"
gradientUnits="userSpaceOnUse"
id="linearGradient3698-3"
xlink:href="#linearGradient3669-22"
inkscape:collect="always" />
<inkscape:perspective
id="perspective3689-1"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<linearGradient
id="linearGradient3669-0">
<stop
style="stop-color:#af7d00;stop-opacity:1;"
offset="0"
id="stop3671-9" />
<stop
style="stop-color:#ffed00;stop-opacity:1;"
offset="1"
id="stop3673-1" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.73872768,0,0,1.3536788,-2.25,-1.9999999)"
y2="1.8468192"
x2="48.259949"
y1="33.61211"
x1="34.290413"
gradientUnits="userSpaceOnUse"
id="linearGradient3698-9"
xlink:href="#linearGradient3669-0"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3602-58"
id="linearGradient3842"
x1="46.661926"
y1="20.954174"
x2="44.890423"
y2="20.88888"
gradientUnits="userSpaceOnUse" />
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient4577"
xlink:href="#linearGradient3144"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient5559"
xlink:href="#linearGradient3144"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4286"
id="linearGradient4292"
x1="21.358636"
y1="23.057552"
x2="60.195723"
y2="23.057552"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6568542"
inkscape:cx="26.836366"
inkscape:cy="27.442596"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1301"
inkscape:window-height="744"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata2821">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2">
<path
style="fill:#000000;stroke:#7b5600;stroke-width:0.17677669;stroke-opacity:1"
d=""
id="path5481"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;stroke:#7b5600;stroke-width:0.17677669;stroke-opacity:1"
d=""
id="path5483"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;stroke:#7b5600;stroke-width:0.17677669;stroke-opacity:1"
d=""
id="path5485"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;stroke:#7b5600;stroke-width:0.17677669;stroke-opacity:1"
d=""
id="path5487"
inkscape:connector-curvature="0" />
<path
style="fill:#000000;stroke:#7b5600;stroke-width:0.17677669;stroke-opacity:1"
d=""
id="path5489"
inkscape:connector-curvature="0" />
<g
sodipodi:type="inkscape:box3d"
id="g3456"
style="fill:#000000;stroke:#7b5600;stroke-opacity:1"
inkscape:perspectiveID="#perspective2824"
inkscape:corner0="0 : 0 : 0 : 1"
inkscape:corner7="0 : 0 : 0 : 1">
<path
sodipodi:type="inkscape:box3dside"
id="path3466"
style="fill:#afafde;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="13"
d="m 34.474874,44.434434 0,0 0,0 0,0 z"
points="32,42.666667 32,42.666667 32,42.666667 32,42.666667 " />
<path
sodipodi:type="inkscape:box3dside"
id="path3458"
style="fill:#353564;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="6"
d="m 34.474874,44.434434 0,0 0,0 0,0 z"
points="32,42.666667 32,42.666667 32,42.666667 32,42.666667 " />
<path
sodipodi:type="inkscape:box3dside"
id="path3468"
style="fill:#e9e9ff;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="11"
d="m 34.474874,44.434434 0,0 0,0 0,0 z"
points="32,42.666667 32,42.666667 32,42.666667 32,42.666667 " />
<path
sodipodi:type="inkscape:box3dside"
id="path3460"
style="fill:#4d4d9f;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="5"
d="m 34.474874,44.434434 0,0 0,0 0,0 z"
points="32,42.666667 32,42.666667 32,42.666667 32,42.666667 " />
<path
sodipodi:type="inkscape:box3dside"
id="path3464"
style="fill:#d7d7ff;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="14"
d="m 34.474874,44.434434 0,0 0,0 0,0 z"
points="32,42.666667 32,42.666667 32,42.666667 32,42.666667 " />
<path
sodipodi:type="inkscape:box3dside"
id="path3462"
style="fill:#8686bf;fill-rule:evenodd;stroke:none"
inkscape:box3dsidetype="3"
d="m 34.474874,44.434434 0,0 0,0 0,0 z"
points="32,42.666667 32,42.666667 32,42.666667 32,42.666667 " />
</g>
</g>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<ellipse
style="opacity:0.9;fill:#666666;fill-opacity:1;stroke:none"
id="path4441-0"
cx="46.886547"
cy="55.826065"
rx="14.623569"
ry="2.1747873"
sodipodi:cx="46.886547"
sodipodi:cy="55.826065"
sodipodi:rx="14.623569"
sodipodi:ry="2.1747873"
transform="translate(2.4748738,1.767767)" />
<ellipse
ry="18.816633"
rx="18.524115"
cy="23.057552"
cx="40.77718"
id="path3696-4-4-0-8"
style="font-size:54.21519089px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;opacity:0.97000002;color:#000000;fill:#007300;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient4292);stroke-width:1.78885722;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Arial;-inkscape-font-specification:Arial"
sodipodi:cx="40.77718"
sodipodi:cy="23.057552"
sodipodi:rx="18.524115"
sodipodi:ry="18.816633"
transform="translate(2.4748738,1.767767)" />
<ellipse
style="opacity:0.9;fill:#666666;fill-opacity:1;stroke:none"
id="path4441-0-9"
cx="36.150833"
cy="58.740665"
rx="17.893938"
ry="2.66115"
sodipodi:cx="36.150833"
sodipodi:cy="58.740665"
sodipodi:rx="17.893938"
sodipodi:ry="2.66115"
transform="translate(2.4748738,1.767767)" />
<ellipse
ry="21.841648"
rx="21.502104"
cy="39.332989"
cx="23.74761"
id="path3696-4-4-0"
style="font-size:54.21519089px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;color:#000000;fill:#007300;fill-opacity:1;fill-rule:evenodd;stroke:#0d2402;stroke-width:2.07608342;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Arial;-inkscape-font-specification:Arial"
sodipodi:cx="23.74761"
sodipodi:cy="39.332989"
sodipodi:rx="21.502104"
sodipodi:ry="21.841648"
transform="translate(2.4748738,1.767767)" />
<text
xml:space="preserve"
style="font-size:28px;font-style:normal;font-weight:normal;fill:#f30606;fill-opacity:1;stroke:#000000;stroke-width:0.94630939px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="-0.89087647"
y="24.649008"
id="text3735"
transform="matrix(0.88877016,-0.00548731,0.00694648,1.1251074,0,0)"><tspan
sodipodi:role="line"
id="tspan3737"
x="-0.89087647"
y="24.649008"
style="font-size:32px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#f30606;fill-opacity:1;stroke:#000000;stroke-width:0.94630939;stroke-opacity:1;font-family:Arial Black;-inkscape-font-specification:'Arial Black, Bold'">?</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
* galou_breizh for macro which creates a circle from 3 selected points *
* Eriossoltero for macro Ellipse-Center+2Points *
* Many Thanks to wmayer for his active help on testing and debbuging *
* Special thanks to Mario52 for FCCamera code, cutCircle... *
* Special thanks to Mario52 for FCCamera code, cutCircle, cutWire... *
* for bounding box codes, advices, diverse pieces of codes *
* and all discussions...merci Mario *
***************************************************************************
@ -51,7 +51,7 @@ if not sys.path.__contains__("/usr/lib/freecad/lib"):
import WFGui_2015 as WFGui
global myRelease
myRelease = "2105_03_08"
myRelease = "2105_03_15"
import os.path
import math
@ -89,9 +89,13 @@ global verbose
verbose=0
global tolerance
tolerance=1e-10
global biColor
biColor=0
m_numberLinePart = 2
m_numberLineCut = 2
m_numberPointCutWire = 2
m_numberAxisCutWire = 2
m_numberCircleCut = 2
m_distanceLinePoint = 0.0
m_extensionTwoPointsAxis = 0.0
@ -217,6 +221,7 @@ def print_segment(segment, msg=""):
"z2 =" + str(point2.z))
return
def verbose_toggled(flag):
""" Respond to the change of verbose flag.
"""
@ -224,6 +229,21 @@ def verbose_toggled(flag):
verbose=0
if flag == True:
verbose=1
print_msg("verbose flag is : " + str(verbose))
def biColor_toggled(flag):
""" Respond to the change of biColor flag.
"""
global verbose
msg=verbose
global biColor
biColor=0
if flag == True:
biColor=1
if msg != 0:
print_msg("biColor flag is : " + str(biColor))
def init_min_max():
""" Return min and max values from System.
@ -239,14 +259,15 @@ def init_min_max():
return min_val, max_val
def alignCamera(sub0,sub1,reverse=False,info=0):
""" Align the camera along an Axis crossing 2 points.
def alignCamera(point1,point2,reverse=False,info=0):
""" Align the camera along an Axis crossing the 2 points in input.
reverse=True to exchange points 1 and 2
"""
# Build vectors difference
if reverse:
v=sub0.sub(sub1)
v=point1.sub(point2)
else:
v=sub1.sub(sub0)
v=point2.sub(point1)
if info != 0:
print_msg("Vectors difference is :" + str(v))
r=App.Rotation(App.Vector(0,0,1),v)
@ -1819,7 +1840,7 @@ def plot_centerLinePoint():
part = "Part::Feature"
global m_numberLinePart
if not (m_numberLinePart >= 2 and m_numberLinePart <= 10) :
if not (m_numberLinePart >= 2 and m_numberLinePart <= 100) :
m_numberLinePart = 2
Selection = get_SelectedObjects(info=msg, printError=False)
try:
@ -2180,6 +2201,149 @@ def plot_2LinesPoint():
printError_msg(error_msg)
def numberPointCutWire(value):
""" Respond to the change in number of cut value from the spin box.
"""
global verbose
msg=verbose
try:
# First we check if a valid number have been entered
global m_numberPointCutWire
if str(value) == '-':
return
m_numberPointCutWire = int(value)
if msg != 0:
print_msg("New number is :" + str(m_numberPointCutWire))
except ValueError:
printError_msg("Number must be valid !")
def cutWire(numberOfPoints, createPoint=1, createLine=0):
""" Partition a Wire and create points, lines, with possible two colours of line.
Original code from : Mario52 03/2015
Adapted to WF by : Rentlau_64 03/2015
"""
def createLines(number, listOfPoints):
""" Create line
"""
global biColor
m_points = listOfPoints
m_numberOfLines = number - 1
m_biColor = biColor
if msg != 0:
print_msg("Number of Lines =" + str(m_numberOfLines))
print_msg("Points =" + str(m_points))
print_msg("biColor =" + str(m_biColor))
red = 0
createFolders('WorkAxis')
for m_lin in range(m_numberOfLines):
Vector_A = Base.Vector(m_points[m_lin])
Vector_B = Base.Vector(m_points[m_lin+1])
#creaLine = [Vector_A,Vector_B]
axis_User_Name, axis = plot_axis(Vector_A, Vector_B, part="Part::Feature", name="Axis_Wire", grp="WorkAxis")
#wire = Draft.makeWire(creaLine,closed=False,face=False,support=None)
# Optional biColor
if m_biColor != 0 :
if red == 0:
# 255 = 1 (10 = (1/255 * 10 ))
#FreeCADGui.ActiveDocument.getObject(wire.Name).LineColor = (1.0,0.0,0.0)
Gui.ActiveDocument.getObject(axis_User_Name).LineColor = (1.0,0.0,0.0)
red = 1
else:
#FreeCADGui.ActiveDocument.getObject(wire.Name).LineColor = (1.0,1.0,1.0)
Gui.ActiveDocument.getObject(axis_User_Name).LineColor = (1.0,1.0,1.0)
red = 0
global verbose
msg=verbose
m_actDoc = get_ActiveDocument(info=msg)
if m_actDoc == None:
return None
error_msg = "Unable to select Wire(s) : \nSelect at least one Edge\nor one Object !"
m_points = []
del m_points[:]
if msg != 0:
print_msg("Number of cuts =" + str(numberOfPoints))
print_msg("CreatePoint flag=" + str(createPoint))
print_msg("CreateLine flag =" + str(createLine))
numberOfPoints += 1
try:
selectionObjects = Gui.Selection.getSelectionEx()
if msg!=0:
print_msg("SelectionObjects is :" + str(selectionObjects))
found = 0
for sel in selectionObjects:
if msg!=0:
print_msg("Selection is :" + str(sel))
#if hasattr(sel,'SubObjects')
if sel.HasSubObjects:
if msg!=0:
print_msg("Found SubObjects")
for sub in sel.SubObjects:
if hasattr(sub,'Edges'):
compteur = 0
for edge in sub.Edges:
if msg!=0:
print_msg("Edge is :" + str(edge))
if hasattr(edge,'discretize'):
found = 1
compteur += 1
points = edge.discretize(numberOfPoints)
for p in points:
if createPoint != 0:
plot_point(p, part="Part::Feature", name="Point_Wire", grp="WorkPoints")
#Draft.makePoint( p.x, p.y, p.z)
print_point(p, msg=str(compteur) +" :")
if createLine != 0:
if msg!=0:
print_msg("createLines function call ")
createLines(numberOfPoints, points)
else:
shape = sel.Object.Shape
if msg!=0:
print_msg("Found NO SubObjects")
print_msg("Shape is :" + str(shape))
if hasattr(shape,'Edges'):
compteur = 0
for edge in shape.Edges:
if msg!=0:
print_msg("Edge is :" + str(edge))
if hasattr(edge,'discretize'):
found = 1
compteur += 1
points = edge.discretize(numberOfPoints)
for p in points:
if createPoint != 0:
plot_point(p, part="Part::Feature", name="Point_Wire", grp="WorkPoints")
#Draft.makePoint( p.x, p.y, p.z)
print_point(p, msg=str(compteur) +" :")
if createLine != 0:
createLines(numberOfPoints, points)
if found == 0:
printError_msg(error_msg)
except:
printError_msg(error_msg)
return
def plot_cutWirePoint():
createFolders('WorkPoints')
global m_numberPointCutWire
if not (m_numberPointCutWire >= 2 and m_numberPointCutWire <= 100) :
m_numberPointCutWire = 2
cutWire(m_numberPointCutWire, createPoint=1, createLine=0)
def plot_clickForPoint():
""" Plot a Point at location of a mouse click.
"""
@ -2279,20 +2443,23 @@ def point_toSketch():
# Get Point(s) from the selection
for m_i in range(1,m_num):
m_obj = m_selEx[m_i]
SubObject = m_obj.SubObjects[0]
if SubObject.ShapeType == "Vertex":
if msg != 0:
print_msg("Found a Points object!")
Point = m_obj.SubObjects[0]
# Get the Point
m_p = Point.Point
# Projection of the Point selected onto the Sketch Plane
Projection = m_p.projectToPlane(m_sketch.Placement.Base, m_recN)
# Append the Projection
geoList.append(Part.Point(Projection))
# Add the geometry list to the Sketch
m_sketch.addGeometry(geoList)
m_num_point = m_num_point + 1
if len(m_obj.SubObjects) != 0:
SubObject = m_obj.SubObjects[0]
if SubObject.ShapeType == "Vertex":
if msg != 0:
print_msg("Found a Points object!")
Point = m_obj.SubObjects[0]
# Get the Point
m_p = Point.Point
# Projection of the Point selected onto the Sketch Plane
Projection = m_p.projectToPlane(m_sketch.Placement.Base, m_recN)
# Append the Projection
geoList.append(Part.Point(Projection))
# Add the geometry list to the Sketch
m_sketch.addGeometry(geoList)
m_num_point = m_num_point + 1
else:
continue
else:
continue
# Refresh
@ -2656,6 +2823,7 @@ def plot_2LinesAxis():
except:
printError_msg(error_msg)
def numberLineCut(value):
""" Respond to the change in number of cut value from the spin box.
"""
@ -2681,6 +2849,8 @@ def plot_cutAxis():
"""
global verbose
msg=verbose
global biColor
red = 0
m_actDoc = get_ActiveDocument(info=msg)
if m_actDoc == None:
@ -2693,7 +2863,7 @@ def plot_cutAxis():
part = "Part::Feature"
global m_numberLineCut
if not (m_numberLineCut >= 2 and m_numberLineCut <= 10) :
if not (m_numberLineCut >= 2 and m_numberLineCut <= 100) :
m_numberLineCut = 2
if msg != 0:
print_msg("Number_of_cuts=" + str(m_numberLineCut))
@ -2718,6 +2888,14 @@ def plot_cutAxis():
print_point(Vector_A,"Vector_A is : ")
print_point(Vector_B,"Vector_B is : ")
Axis_User_Name, axis = plot_axis(Vector_A, Vector_B, part, name)
if biColor != 0:
if red == 0:
Gui.ActiveDocument.getObject(Axis_User_Name).LineColor = (1.0,0.0,0.0)
red = 1
else:
Gui.ActiveDocument.getObject(Axis_User_Name).LineColor = (1.0,1.0,1.0)
red = 0
Vector_A = Vector_B
#Vector_B = edge.valueAt( edge.Length )
Vector_B = edge.Vertexes[-1].Point
@ -2725,6 +2903,14 @@ def plot_cutAxis():
print_point(Vector_A,"Vector_A is : ")
print_point(Vector_B,"Vector_B is : ")
Axis_User_Name, axis = plot_axis(Vector_A, Vector_B, part, name)
if biColor != 0:
if red == 0:
Gui.ActiveDocument.getObject(Axis_User_Name).LineColor = (1.0,0.0,0.0)
red = 1
else:
Gui.ActiveDocument.getObject(Axis_User_Name).LineColor = (1.0,1.0,1.0)
red = 0
print_msg(str(Axis_User_Name) + result_msg )
Gui.ActiveDocument.getObject(str(m_objNames[i])).Visibility=False
@ -2732,6 +2918,32 @@ def plot_cutAxis():
except:
printError_msg(error_msg)
def numberAxisCutWire(value):
""" Respond to the change in number of cut value from the spin box.
"""
global verbose
msg=verbose
try:
# First we check if a valid number have been entered
global m_numberAxisCutWire
if str(value) == '-':
return
m_numberAxisCutWire = int(value)
if msg != 0:
print_msg("New number is :" + str(m_numberAxisCutWire))
except ValueError:
printError_msg("Number must be valid !")
def plot_cutWireAxis():
createFolders('WorkAxis')
global m_numberAxisCutWire
if not (m_numberAxisCutWire >= 2 and m_numberAxisCutWire <= 100) :
m_numberAxisCutWire = 2
cutWire(m_numberAxisCutWire, createPoint=0, createLine=1)
def extensionLinePointAxis(value):
""" Respond to the change in extension value from the text box.
@ -3525,6 +3737,8 @@ def plot_cutCircle():
"""
global verbose
msg=verbose
global biColor
red = 0
m_actDoc = get_ActiveDocument(info=msg)
if m_actDoc == None:
@ -3537,7 +3751,7 @@ def plot_cutCircle():
part = "Part::Feature"
global m_numberCircleCut
if not (m_numberCircleCut >= 2 and m_numberCircleCut <= 10) :
if not (m_numberCircleCut >= 2 and m_numberCircleCut <= 100) :
m_numberCircleCut = 2
if msg != 0:
print_msg("Number of cuts=" + str(m_numberCircleCut))
@ -3595,9 +3809,17 @@ def plot_cutCircle():
print_msg("Start at =" +str(pivot1))
print_msg("End at =" +str(pivot2))
Arc_User_Name, arc = plot_arc(center, normal, radius, pivot1, pivot2, part, name)
if biColor != 0:
if red == 0:
Gui.ActiveDocument.getObject(Arc_User_Name).LineColor = (1.0,0.0,0.0)
red = 1
else:
Gui.ActiveDocument.getObject(Arc_User_Name).LineColor = (1.0,1.0,1.0)
red = 0
pivot1 += pivot0
print_msg(str(Arc_User_Name) + result_msg )
Gui.ActiveDocument.getObject(label).Visibility=False
elif (label[:8] == "Cylinder"):
if msg != 0:
@ -3629,7 +3851,7 @@ def plot_cutCircle():
First = float(piece.FirstAngle)
Last = float(piece.LastAngle)
# Part::PartFeature
elif (label[:3] == "Arc") and hasattr(piece.Shape, 'Curve') and hasattr(piece.Shape.Curve, 'Radius'):
elif (label[:3] == "Arc") and hasattr(piece.Shape, 'Curve') and hasattr(piece.Shape.Curve, 'Radius'):
radius = piece.Shape.Curve.Radius
center = piece.Shape.Curve.Center
normal = piece.Shape.Curve.Axis
@ -3649,10 +3871,18 @@ def plot_cutCircle():
print_msg("Start at =" +str(pivot1))
print_msg("End at =" +str(pivot2))
Arc_User_Name, arc = plot_arc(center, normal, radius, pivot1, pivot2, part, name)
if biColor != 0:
if red == 0:
Gui.ActiveDocument.getObject(Arc_User_Name).LineColor = (1.0,0.0,0.0)
red = 1
else:
Gui.ActiveDocument.getObject(Arc_User_Name).LineColor = (1.0,1.0,1.0)
red = 0
pivot1 += pivot0
print_msg(str(Arc_User_Name) + result_msg )
Gui.ActiveDocument.getObject(label).Visibility=False
Gui.ActiveDocument.getObject(label).Visibility=False
else:
printError_msg(error_msg)
@ -5454,7 +5684,75 @@ def object_perpendicular():
def object_coplanar():
two_objects_are("coplanar")
def object_clearance():
"""
Check for two Objects Clearance distance:
Quick measurements between parallel faces and similarly placed objects
Original code from : Bill 03/2015
Adapted to WF by : Rentlau_64 03/2015
"""
global verbose
msg=verbose
m_actDoc = get_ActiveDocument(info=msg)
if m_actDoc == None:
return None
error_msg = "INCORRECT Object(s) Selection :\n\nYou Must Select Two(2) Objects !"
try:
selectionObjects = Gui.Selection.getSelectionEx()
if msg!=0:
print_msg("SelectionObjects is :" + str(selectionObjects))
print_msg("Number of objects is :" + str(len(selectionObjects)))
if len(selectionObjects) != 2:
printError_msg(error_msg)
return
OBJ1 = selectionObjects[0].ObjectName
OBJ2 = selectionObjects[1].ObjectName
mindist = App.ActiveDocument.getObject(OBJ1).Shape.distToShape(App.ActiveDocument.getObject(OBJ2).Shape)[0]
print_msg("Distance to Second Object is " + str(mindist) + "\n" )
if mindist == 0.0:
msg = 'POSSIBLE COLLISION DETECTED \n\nCLEARANCE(S) <= 0 \n\nCheck Clearances and Settings !'
else:
msg = 'Object CLEARANCE is '+ str(mindist) +' units !'
print_gui_msg(msg)
except:
printError_msg(error_msg)
def object_align2view():
""" Place your object selected to the position ActiveView (camera)
__author__ = "Mario52"
"""
# revoir le point de rotation
msg=0
error_msg = "Select one object !"
m_actDoc = get_ActiveDocument(info=msg)
if m_actDoc == None:
return None
m_num, m_selEx, m_objs, m_objNames = get_InfoObjects(info=msg)
Center = centerObjectsPoint(m_objs)
if Center != None:
pl = FreeCAD.Placement()
pl.Rotation = Gui.ActiveDocument.ActiveView.getCameraOrientation()
pl.Base = App.Vector(0,0,0)
for m_objName in m_objNames:
App.ActiveDocument.getObject(m_objName).Placement=pl
else:
printError_msg(error_msg)
#sel = Gui.Selection.getSelection()
#Nameelement = sel[0].Name
#pl = FreeCAD.Placement()
#pl.Rotation = Gui.ActiveDocument.ActiveView.getCameraOrientation()
#pl.Base = FreeCAD.Vector(0.0,0.0,0.0)
#App.ActiveDocument.getObject(Nameelement).Placement=pl
####################################################################################
try:
@ -5517,6 +5815,7 @@ class WorkFeatureTab():
"button_point_line_point" : "plot_pointLinePoint",
"button_point_face_point" : "plot_pointFacePoint",
"button_twolines_point" : "plot_2LinesPoint",
"button_cut_wire_point" : "plot_cutWirePoint",
"button_click_for_point" : "plot_clickForPoint",
"button_object_base_point" : "plot_baseObjectPoint",
"button_point_to_sketch" : "point_toSketch",
@ -5528,6 +5827,7 @@ class WorkFeatureTab():
"button_face_normal" : "plot_faceNormal",
"button_twolines_axis" : "plot_2LinesAxis",
"button_cut_axis" : "plot_cutAxis",
"button_cut_wire_axis" : "plot_cutWireAxis",
"button_point_line_axis" : "plot_pointLineAxis",
"button_line_point_axis" : "plot_linePointAxis",
"button_line_plane_axis" : "plot_linePlaneAxis",
@ -5568,7 +5868,8 @@ class WorkFeatureTab():
"button_isParallel" : "object_parallel",
"button_isPerpendicular" : "object_perpendicular",
"button_isCoplanar" : "object_coplanar",
"button_isClearance" : "object_clearance",
}
self.connections_for_text_changed = {
@ -5602,11 +5903,14 @@ class WorkFeatureTab():
self.connections_for_spin_changed = {
"spin_line_center" : "numberLinePart",
"spin_axis_cut" : "numberLineCut",
"spin_wire_cut_point" : "numberPointCutWire",
"spin_wire_cut_axis" : "numberAxisCutWire",
"spin_circle_cut" : "numberCircleCut",
}
self.connections_for_radiobutton_clicked = {
"radioButton_verbose" : "verbose_toggled",
"radioButton_biColor" : "biColor_toggled",
}
self.connections_for_combobox_changed = {