~hilaire-fernandes/drgeo/trunk

« back to all changes in this revision

Viewing changes to resources/examples/Lunules.fgeo

  • Committer: Hilaire Fernandes
  • Date: 2022-08-15 15:18:37 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20220815151837-6ta4g0ymzln715j4
Organisation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml  version="1.0" encoding="UTF-8" ?>
 
 
b'<drgenius>'
 
 
b'<drgeo axes="False" custom_controls="False" grid="False" gridded="False" name="Lunules" origin_x="-11.535268652915711" origin_y="-16.828940667175964" scale="17.0">'
 
 
b'<controls wheelX="True" wheelY="True" wheelZ="True"/> '
 
 
b'<point color="Red" delta="(7@7)" feedback="True" id="890801660" locked="False" masked="False" name=" " style="Round" thickness="Dashed" type="Free">'
 
 
b'<x>-29.01680672268899</x>'
 
 
b'<y>-21.07563025210084</y></point>'
 
 
b'<point color="Red" delta="(7@7)" feedback="True" id="1063122153" locked="False" masked="False" name=" " style="Round" thickness="Dashed" type="Free">'
 
 
b'<x>-9.80952380952381</x>'
 
 
b'<y>-14.476190476190478</y></point>'
 
 
b'<segment anchor="0.5" arrow="makeNoArrows" color="Black" delta="(7@7)" feedback="True" id="263893523" mark="none" masked="False" name="" style="plain" thickness="small" type="2pts">'
 
 
b'<parent ref="890801660"/> '
 
 
b'<parent ref="1063122153"/> </segment>'
 
 
b'<line anchor="0.5" color="Black" delta="(7@7)" feedback="True" id="194307030" masked="True" name="" style="plain" thickness="small" type="perpendicular">'
 
 
b'<parent ref="263893523"/> '
 
 
b'<parent ref="1063122153"/> </line>'
 
 
b'<point color="Red" delta="(7@7)" feedback="True" id="47906061" locked="False" masked="False" name=" " style="Round" thickness="Dashed" type="On_curve">'
 
 
b'<parent ref="194307030"/> '
 
 
b'<value>0.021189304634946393</value></point>'
 
 
b'<segment anchor="0.5" arrow="makeNoArrows" color="Black" delta="(7@7)" feedback="True" id="96890919" mark="none" masked="False" name="" style="plain" thickness="small" type="2pts">'
 
 
b'<parent ref="890801660"/> '
 
 
b'<parent ref="47906061"/> </segment>'
 
 
b'<point color="Red" delta="(7@7)" feedback="True" id="256174372" masked="False" name=" " style="Round" thickness="Dashed" type="Middle_segment">'
 
 
b'<parent ref="263893523"/> </point>'
 
 
b'<point color="Red" delta="(10.705966876872653@30.990922838970683)" feedback="True" id="68340663" masked="False" name=" " style="Round" thickness="Dashed" type="Middle_2pts">'
 
 
b'<parent ref="1063122153"/> '
 
 
b'<parent ref="47906061"/> </point>'
 
 
b'<line anchor="0.5" color="Black" delta="(7@7)" feedback="True" id="94624489" masked="True" name="" style="plain" thickness="small" type="perpendicular">'
 
 
b'<parent ref="263893523"/> '
 
 
b'<parent ref="256174372"/> </line>'
 
 
b'<circle anchor="0.5" color="Black" delta="(7@7)" feedback="True" filled="False" id="230403379" masked="True" name="" style="plain" thickness="small" translucent="True" type="2pts">'
 
 
b'<parent ref="256174372"/> '
 
 
b'<parent ref="890801660"/> </circle>'
 
 
b'<point color="Red" delta="(7@7)" extra="1" feedback="True" id="133809676" masked="True" name=" " style="Round" thickness="Dashed" type="Intersection">'
 
 
b'<parent ref="94624489"/> '
 
 
b'<parent ref="230403379"/> </point>'
 
 
b'<arc anchor="0.5477196519848654" arrow="makeNoArrows" color="Green" delta="(-22.032587735345828@ -20.721829465798635)" feedback="True" filled="True" id="21673464" masked="False" name="lunule 1" style="plain" thickness="medium" translucent="True" type="3pts">'
 
 
b'<parent ref="890801660"/> '
 
 
b'<parent ref="133809676"/> '
 
 
b'<parent ref="1063122153"/> </arc>'
 
 
b'<segment anchor="0.5" arrow="makeNoArrows" color="Black" delta="(7@7)" feedback="True" id="243028568" mark="none" masked="False" name="" style="plain" thickness="small" type="2pts">'
 
 
b'<parent ref="1063122153"/> '
 
 
b'<parent ref="47906061"/> </segment>'
 
 
b'<line anchor="0.5" color="Black" delta="(7@7)" feedback="True" id="17659349" masked="True" name="" style="plain" thickness="small" type="perpendicular">'
 
 
b'<parent ref="243028568"/> '
 
 
b'<parent ref="68340663"/> </line>'
 
 
b'<circle anchor="0.5" color="Black" delta="(7@7)" feedback="True" filled="False" id="93740551" masked="True" name="" style="plain" thickness="small" translucent="True" type="2pts">'
 
 
b'<parent ref="68340663"/> '
 
 
b'<parent ref="1063122153"/> </circle>'
 
 
b'<point color="Red" delta="(7@7)" extra="1" feedback="True" id="191974667" masked="True" name=" " style="Round" thickness="Dashed" type="Intersection">'
 
 
b'<parent ref="17659349"/> '
 
 
b'<parent ref="93740551"/> </point>'
 
 
b'<arc anchor="0.5" arrow="makeNoArrows" color="Green" delta="(7@7)" feedback="True" filled="True" id="114800352" masked="False" name="lunule 2" style="plain" thickness="medium" translucent="True" type="3pts">'
 
 
b'<parent ref="1063122153"/> '
 
 
b'<parent ref="191974667"/> '
 
 
b'<parent ref="47906061"/> </arc>'
 
 
b'<arc anchor="0.5" arrow="makeNoArrows" color="White" delta="(7@7)" feedback="True" filled="True" id="107418824" masked="False" name="" style="plain" thickness="small" translucent="False" type="3pts">'
 
 
b'<parent ref="890801660"/> '
 
 
b'<parent ref="1063122153"/> '
 
 
b'<parent ref="47906061"/> </arc>'
 
 
b'<polygon anchor="0.5" arrow="makeNoArrows" color="Black" delta="(7@7)" feedback="True" filled="False" id="104959283" masked="False" name="" style="plain" thickness="medium" translucent="True" type="npts">'
 
 
b'<parent ref="890801660"/> '
 
 
b'<parent ref="1063122153"/> '
 
 
b'<parent ref="47906061"/> </polygon>'
 
 
b'<arc anchor="0.5" arrow="makeNoArrows" color="Black" delta="(7@7)" feedback="True" filled="False" id="107418824" masked="False" name="" style="plain" thickness="small" translucent="True" type="3pts">'
 
 
b'<parent ref="890801660"/> '
 
 
b'<parent ref="1063122153"/> '
 
 
b'<parent ref="47906061"/> </arc>'
 
 
b'<value background="White" border="Transparent" class="DrGeoScript216280374" color="Black" delta="(7@7)" feedback="True" fontSize="10" id="540560139" locked="False" masked="False" name="" type="script">'
 
 
b'<parent ref="104959283"/> '
 
 
b"<code>DrGeoUserScript subclass: #DrGeoScript216280374&#13;&#9;instanceVariableNames: ''&#13;&#9;classVariableNames: ''&#13;&#9;poolDictionaries: ''&#13;&#9;category: 'DrGeoII-User'!&#13;&#13;!DrGeoScript216280374 methodsFor: 'public' stamp: 'DrGeoUser 9/14/2017 12:10'!&#13;compute&#13;&#9;| sommets dernier sommeDesAires|&#13;&#9;sommets := self arg1 points.&#13;&#9;dernier := sommets last.&#13;&#9;sommeDesAires := 0.&#13;&#9;1 to: sommets size - 2 do: [ :index | &#13;&#9;&#9;sommeDesAires := sommeDesAires + &#13;&#9;&#9;&#9;(dernier triangleArea: (sommets at: index) with: (sommets at: index + 1)) abs&#13;&#9;&#9;].&#13;&#9;^(sommeDesAires / 2)  asFloat! !&#13;&#13;&quot;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &quot;!&#13;&#13;DrGeoScript216280374 class&#13;&#9;instanceVariableNames: ''!&#13;&#13;!DrGeoScript216280374 class methodsFor: 'private' stamp: 'DrGeoUser 9/3/2017 10:39'!&#13;newArgumentsType&#13;&#9;^{DrGPolygonItem}! !&#13;&#13;&#13;!DrGeoScript216280374 class methodsFor: 'public' stamp: 'DrGeoUser 9/3/2017 10:39'!&#13;description&#13;&#9;^'Calcule la surface d''un polygone convexe'! !&#13;&#13;!DrGeoScript216280374 class methodsFor: 'public' stamp: 'DrGeoUser 9/3/2017 10:39'!&#13;scriptName&#13;&#9;^'Surface polygone'! !&#13;</code>"
 
 
b'<x>-4.44983447924625</x>'
 
 
b'<y>-1.5656353450471063</y></value>'
 
 
b'<value background="White" border="Transparent" class="DrGeoScript130190116" color="Black" delta="(7@7)" feedback="True" fontSize="9" id="809690611" locked="False" masked="False" name="" type="script">'
 
 
b'<parent ref="21673464"/> '
 
 
b'<parent ref="114800352"/> '
 
 
b'<parent ref="107418824"/> '
 
 
b'<parent ref="540560139"/> '
 
 
b"<code>DrGeoUserScript subclass: #DrGeoScript130190116&#13;&#9;instanceVariableNames: ''&#13;&#9;classVariableNames: ''&#13;&#9;poolDictionaries: ''&#13;&#9;category: 'DrGeoII-User'!&#13;&#13;!DrGeoScript130190116 methodsFor: 'public' stamp: 'DrGeoUser 9/14/2017 16:11'!&#13;compute&#13;&quot;Edit me&quot;&#13;&#9;^ (self arg1 radius squared + self arg2 radius squared - self arg3 radius squared) * Float pi / 2&#13;&#9;+ self arg4 valueItem! !&#13;&#13;&quot;-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- &quot;!&#13;&#13;DrGeoScript130190116 class&#13;&#9;instanceVariableNames: ''!&#13;&#13;!DrGeoScript130190116 class methodsFor: 'private' stamp: 'DrGeoUser 9/14/2017 12:13'!&#13;newArgumentsType&#13;&#9;^{DrGArcItem.DrGArcItem.DrGArcItem.DrGValueItem}! !&#13;&#13;&#13;!DrGeoScript130190116 class methodsFor: 'public' stamp: 'DrGeoUser 9/14/2017 16:14'!&#13;description&#13;&#9;^'Calcule la surface des lunules sachant:&#13;- les deux demi-cercles lunules&#13;- le demi-cercle de diam\xc3\xa8tre l''hypot\xc3\xa9nuse&#13;- l''aire du triangle'! !&#13;&#13;!DrGeoScript130190116 class methodsFor: 'public' stamp: 'DrGeoUser 9/14/2017 12:13'!&#13;scriptName&#13;&#9;^'Lunules'! !&#13;</code>"
 
 
b'<x>-4.3335879806468105</x>'
 
 
b'<y>0.430162974280624</y></value>'
 
 
b'<text background="Green" border="Transparent" color="Black" delta="(7@7)" feedback="True" fontSize="10" id="60959631" locked="False" masked="False" name="" type="free">'
 
 
b'<contents>Surface lunules :</contents>'
 
 
b'<x>-7.417621594092184</x>'
 
 
b'<y>-0.29952890247007247</y></text>'
 
 
b'<text background="White" border="Transparent" color="Black" delta="(7@7)" feedback="True" fontSize="10" id="263129372" locked="False" masked="False" name="" type="free">'
 
 
b'<contents>Surface triangle :</contents>'
 
 
b'<x>-7.535268652915715</x>'
 
 
b'<y>-2.4171759612936037</y></text></drgeo></drgenius>'
 
 
b'\\ No newline at end of file'