Jelajahi Sumber

tikz: updated some triangle images

Martin Thoma 10 tahun lalu
induk
melakukan
6ffe05846e

TEMPAT SAMPAH
tikz/triangle-9-point-circle-circumscribed-circle/triangle-9-point-circle-circumscribed-circle.png


+ 5 - 3
tikz/triangle-9-point-circle-circumscribed-circle/triangle-9-point-circle-circumscribed-circle.tex

@@ -29,7 +29,7 @@
     \tkzDefMidPoint(B,C) \tkzGetPoint{D}
 
     \tkzDefCircle[circum,/tikz/overlay](D,E,F)\tkzGetPoint{Icircle}\tkzGetLength{rIN}
-    \tkzDrawCircle[R](Icircle,\rIN pt)
+    \tkzDrawCircle[R,color=red, very thick](Icircle,\rIN pt)
 
     % Get 'Hoehe'
     \tkzInterLC[/tikz/overlay](B,C)(A,B)\tkzGetPoints{hah1}{hah2}
@@ -52,7 +52,7 @@
     % Draw polygon
     \tkzDrawPolygon[thick](A,B,C)
     \tkzDefCircle[circum,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle}
-    \tkzDrawCircle(Ocircle,A)
+    \tkzDrawCircle[color=blue](Ocircle,A)
     \tkzCalcLength(Ocircle,A) \tkzGetLength{dOcircle}
 
     % TODO: define shiftedOcircOrigin which is
@@ -67,7 +67,9 @@
     \tkzDrawSegments[dashed](Icircle,C'')
     \tkzLabelSegment[below](Icircle,C''){$r_2$} 
 
-    \tkzDrawPoints[size=2,fill=black](D,E,F,Icircle,Ocircle)
+    \tkzDrawPoints[size=2,fill=black](D,E,F)
+    \tkzDrawPoints[size=2,fill=blue,color=blue](Ocircle)
+    \tkzDrawPoints[size=2,fill=red,color=red](Icircle)
 \end{tikzpicture}
 \end{preview}
 \end{document}

+ 31 - 0
tikz/triangle-9-point-circle-escribed-circles/Makefile

@@ -0,0 +1,31 @@
+SOURCE = triangle-9-point-circle-escribed-circles
+DELAY = 80
+DENSITY = 300
+WIDTH = 500
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	rm -rf  $(TARGET) *.class *.html *.log *.aux
+
+gif:
+	pdfcrop $(SOURCE).pdf
+	convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
+	make clean
+
+png:
+	make
+	make svg
+	inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
+
+transparentGif:
+	convert $(SOURCE).pdf -transparent white result.gif
+	make clean
+
+svg:
+	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
+	pdf2svg $(SOURCE).pdf $(SOURCE).svg
+	# Necessary, as pdf2svg does not always create valid svgs:
+	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/triangle-9-point-circle-escribed-circles/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](triangle-9-point-circle-escribed-circles.png)

TEMPAT SAMPAH
tikz/triangle-9-point-circle-escribed-circles/triangle-9-point-circle-escribed-circles.png


+ 93 - 0
tikz/triangle-9-point-circle-escribed-circles/triangle-9-point-circle-escribed-circles.tex

@@ -0,0 +1,93 @@
+\documentclass{article}
+\usepackage[pdftex,active,tightpage]{preview}
+\setlength\PreviewBorder{2mm}
+\usepackage{tikz}
+\usepackage{tkz-euclide}
+\usetkzobj{all}
+\usetikzlibrary{shapes, calc, decorations} 
+\usepackage{amsmath,amssymb}
+\usepackage{helvet}
+\usepackage[eulergreek]{sansmath}
+
+\begin{document}
+\begin{preview}
+\begin{tikzpicture}[very thick,font=\sansmath\sffamily]
+    \tkzDefPoint(0,1){A}
+    \tkzDefPoint(4,0){B}
+    \tkzDefPoint(3,6){C}
+
+    \tkzLabelPoints[below left,font=\sansmath\sffamily](A)
+    \tkzLabelPoints[below right,font=\sansmath\sffamily](B)
+    \tkzLabelPoints[above,font=\sansmath\sffamily](C)
+
+    % Draw polygon
+    \tkzDrawPolygon[thick,fill=gray!10](A,B,C)
+
+    % Get mid points
+    \tkzDefMidPoint(A,B) \tkzGetPoint{F}
+    \tkzDefMidPoint(A,C) \tkzGetPoint{E}
+    \tkzDefMidPoint(B,C) \tkzGetPoint{D}
+
+    \tkzDefCircle[circum,/tikz/overlay](D,E,F)\tkzGetPoint{Icircle}\tkzGetLength{rIN}
+
+    % Get 'Hoehe'
+    \tkzInterLC[/tikz/overlay](B,C)(A,B)\tkzGetPoints{hah1}{hah2}
+    \tkzDefMidPoint(hah1,hah2) \tkzGetPoint{G}
+
+    \tkzInterLC[/tikz/overlay](A,B)(C,A)\tkzGetPoints{hch1}{hch2}
+    \tkzDefMidPoint(hch1,hch2) \tkzGetPoint{H}
+
+    \tkzInterLC[/tikz/overlay](A,C)(B,A)\tkzGetPoints{hbh1}{hbh2}
+    \tkzDefMidPoint(hbh1,hbh2) \tkzGetPoint{I}
+
+    % 'Hoehenschnittpunkt'
+    \tkzInterLL(A,G)(C,H)\tkzGetPoint{S}
+
+    % More points
+    \tkzInterLC[/tikz/overlay,R](A,G)(Icircle,\rIN pt)\tkzGetPoints{G}{J}
+    \tkzInterLC[/tikz/overlay,R](B,I)(Icircle,\rIN pt)\tkzGetPoints{L}{I}
+    \tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K}
+
+    % Draw polygon
+    \tkzDrawPolygon[thick](A,B,C)
+    \tkzDefCircle[in,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle}\tkzGetLength{dOcircle}
+    \tkzDrawCircle[R](Ocircle,\dOcircle pt)
+
+    \tkzDefCircle[circum,/tikz/overlay](D,E,F)\tkzGetPoint{Icircle}\tkzGetLength{rIN}
+    \tkzClipCircle[R](Icircle,5cm)
+
+    % Get escribed circles
+    % first one
+    \tkzDefLine[bisector](B,A,C)\tkzGetPoint{alphaBisector}
+    \tkzDefBarycentricPoint(A=1,B=-2)\tkzGetPoint{ABproj}
+    \tkzDefLine[bisector](ABproj,B,C)\tkzGetPoint{betaOuterBisector}
+    % \tkzDrawSegments[blue](A,alphaBisector B,betaOuterBisector)
+    \tkzInterLL(A,alphaBisector)(B,betaOuterBisector) \tkzGetPoint{EscribedCircleCenter1}
+    \tkzInterLC(A,alphaBisector)(Icircle,H)\tkzGetPoints{EscribedCircleRadius1a}{EscribedCircleRadius2b}
+    \tkzDrawCircle[color=blue](EscribedCircleCenter1,EscribedCircleRadius1a)
+
+    % second one
+    \tkzDefLine[bisector](C,B,A)\tkzGetPoint{betaBisector}
+    \tkzDefBarycentricPoint(B=1,A=-2)\tkzGetPoint{BAproj}
+    \tkzDefLine[bisector](C,A,BAproj)\tkzGetPoint{alphaOuterBisector}
+    % \tkzDrawSegments[blue](B,betaBisector A,alphaOuterBisector)
+    \tkzInterLL(B,betaBisector)(A,alphaOuterBisector) \tkzGetPoint{EscribedCircleCenter2}
+    \tkzInterLC(B,betaBisector)(Icircle,H)\tkzGetPoints{EscribedCircleRadius2a}{EscribedCircleRadius2b}
+    \tkzDrawCircle[color=blue](EscribedCircleCenter2,EscribedCircleRadius2b)
+
+    % third one
+    \tkzDefLine[bisector](A,C,B)\tkzGetPoint{gammaBisector}
+    \tkzDefBarycentricPoint(A=-2,C=1)\tkzGetPoint{ACproj}
+    \tkzDefLine[bisector](ACproj,A,B)\tkzGetPoint{gammaOuterBisector}
+    % \tkzDrawSegments[blue](C,gammaBisector A,gammaOuterBisector)
+    \tkzInterLL(C,gammaBisector)(A,gammaOuterBisector) \tkzGetPoint{EscribedCircleCenter3}
+    \tkzInterLC(C,gammaBisector)(Icircle,H)\tkzGetPoints{EscribedCircleRadius3a}{EscribedCircleRadius3b}
+    \tkzDrawCircle[color=blue](EscribedCircleCenter3,EscribedCircleRadius3b)
+
+
+    \tkzDrawPoints[size=2,fill=black](D,E,F,Ocircle)
+    \tkzDrawPoints[size=2,fill=red,color=red](Icircle)
+    \tkzDrawCircle[R,color=red,very thick](Icircle,\rIN pt)
+\end{tikzpicture}
+\end{preview}
+\end{document}

TEMPAT SAMPAH
tikz/triangle-9-point-circle/triangle-9-point-circle.png


+ 8 - 8
tikz/triangle-9-point-circle/triangle-9-point-circle.tex

@@ -40,29 +40,29 @@
     \tkzLabelPoints[right,font=\sansmath\sffamily](G)
 
     \tkzInterLC[/tikz/overlay](A,B)(C,A)\tkzGetPoints{hch1}{hch2}
-    \tkzDefMidPoint(hch1,hch2) \tkzGetPoint{H}
-    \tkzLabelPoints[below,font=\sansmath\sffamily](H)
+    \tkzDefMidPoint(hch1,hch2) \tkzGetPoint{I}
+    \tkzLabelPoints[below,font=\sansmath\sffamily](I)
 
     \tkzInterLC[/tikz/overlay](A,C)(B,A)\tkzGetPoints{hbh1}{hbh2}
-    \tkzDefMidPoint(hbh1,hbh2) \tkzGetPoint{I}
-    \tkzLabelPoints[left,font=\sansmath\sffamily](I)
+    \tkzDefMidPoint(hbh1,hbh2) \tkzGetPoint{H}
+    \tkzLabelPoints[left,font=\sansmath\sffamily](H)
 
     % 'Hoehenschnittpunkt'
-    \tkzInterLL(A,G)(C,H)\tkzGetPoint{S}
+    \tkzInterLL(A,G)(C,I)\tkzGetPoint{S}
     \tkzLabelPoints[above right,font=\sansmath\sffamily](S)
 
     % More points
     \tkzInterLC[/tikz/overlay,R](A,G)(Icircle,\rIN pt)\tkzGetPoints{G}{J}
     \tkzLabelPoints[above,font=\sansmath\sffamily](J)
 
-    \tkzInterLC[/tikz/overlay,R](B,I)(Icircle,\rIN pt)\tkzGetPoints{L}{I}
+    \tkzInterLC[/tikz/overlay,R](B,H)(Icircle,\rIN pt)\tkzGetPoints{L}{H}
     \tkzLabelPoints[above,font=\sansmath\sffamily](L)
 
-    \tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K}
+    \tkzInterLC[/tikz/overlay,R](C,I)(Icircle,\rIN pt)\tkzGetPoints{I}{K}
     \tkzLabelPoints[above left,font=\sansmath\sffamily](K)
 
     % Draw rest
-    \tkzDrawSegments[dashed](A,G C,H B,I)
+    \tkzDrawSegments[dashed](A,G C,I B,H)
     \tkzDrawSegments[thick](A,J J,S)  % red,very thick
     \tkzDrawSegments[thick](C,K K,S)  % green,very 
     \tkzDrawSegments[thick](B,L L,S)  % blue,very 

TEMPAT SAMPAH
tikz/triangle-inscribed-circle/triangle-inscribed-circle.png


+ 2 - 2
tikz/triangle-inscribed-circle/triangle-inscribed-circle.tex

@@ -14,7 +14,7 @@
 \begin{tikzpicture}[very thick,font=\sansmath\sffamily]
     \tkzDefPoint(0,0){A}
     \tkzDefPoint(5.0,0){B}
-    \tkzDefPoint(4.0,3){C}
+    \tkzDefPoint(3.5,3){C}
 
     \tkzLabelPoints[below left,font=\sansmath\sffamily](A)
     \tkzLabelPoints[below right,font=\sansmath\sffamily](B)
@@ -67,7 +67,7 @@
     \tkzDrawSegments(I,ABq I,BCq I,CAq)
     \tkzLabelSegment[right](I,ABq){r}
     \tkzLabelSegment[above](I,BCq){r}
-    \tkzLabelSegment[left](I,CAq){r}
+    \tkzLabelSegment[above](I,CAq){r}
 
     % Draw polygon
     \tkzDrawPolygon[thick](A,B,C)