Flächen ausfüllen, nicht gerade verlaufende Linien

Tabellen und Grafiken erstellen und anordnen


heinrich
Forum-Anfänger
Forum-Anfänger
Beiträge: 16
Registriert: Mo 14. Mai 2018, 19:28

Flächen ausfüllen, nicht gerade verlaufende Linien

Beitrag von heinrich »

Hallo,


probiere die Umkreiste Fläche mit der passenden Farbe auszufüllen.
Über die Option fill bekomme ich es so leider nicht hin.

Hätte jemand einen Vorschlag wie man die Fläche ausfüllt, ohne alles wieder umzubauen?


Um jeden Tipp dankbar!


Code: Alles auswählen



\documentclass[10pt,open=right,twoside]{scrreprt} 
\usepackage[ngerman]{babel} 
\usepackage[T1]{fontenc} 
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{tikz-dimline} 
\usepackage{ifthen,xcolor}


\begin{document}



\begin{tikzpicture}
\def \x {1}
\def \y {0.5}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Flächen für die Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%seitlichen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   \draw[thin,fill=gray!80!black!70] (3.99*\x,0.05) -- (6.5*\x,5*\y+0.05)-- (6.5*\x,6*\y)--(3.925*\x,1*\y)-- cycle;
   \draw[thin,fill=gray!80!black!60](3.925*\x,1*\y) -- (6.5*\x,6*\y)--(6.5*\x,7*\y)--(3.925*\x,2*\y)--cycle;
   \draw[thin,fill=gray!80!black!50](3.925*\x,2*\y) -- (6.5*\x,7*\y)-- (6.5*\x,8*\y)--(3.925*\x,3*\y)--cycle;
   \draw[thin,fill=gray!80!black!30](3.925*\x,4*\y) -- (5.88*\x,7.8*\y)--(5.88*\x,8.76*\y)--(3.94*\x,4.99*\y)--cycle;
      %F1 :   
   \draw[thin,fill=gray!80!black!40](3.925*\x,3*\y) -- (6.5*\x,8*\y)--(6.5*\x,9*\y)--(3.925*\x,4*\y)--cycle;
   
%oberen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   \draw[thin,fill=gray!80!black!20](0.06,4.96*\y) -- (2.5*\x,10*\y)-- (3.5*\x,10*\y)--(-0.02+\x,4.8*\y)--cycle;
   \draw[thin,fill=gray!80!black!20](-0.04+\x,4.8*\y) -- (3.5*\x,10*\y)-- (4.5*\x,10*\y)--(-0.02+2*\x,4.8*\y)--cycle;
   \draw[thin,fill=gray!80!black!20](-0.04+2*\x,4.8*\y) -- (4.5*\x,10*\y)--(4.82*\x,10*\y)--(4.88*\x,9.6*\y)--(4.88*\x,8.76*\y)--(-0.02+3*\x,4.8*\y)--cycle;
       %F2:
   \draw[thin,fill=gray!80!black!20](-0.04+3*\x,4.8*\y) -- (4.88*\x,8.76*\y)--(5.88*\x,8.76*\y)--(3.94*\x,4.99*\y)--cycle;
   
   
   
%%%%%%%%      
%Begrenzungslinien der noch auszufüllenden Flächen
%%%%%%%%   
   % In der Farbe fill=gray!80!black!30, wie auch die Flcähe zuvor, siehe F1 
    \draw[] (6.5*\x,9*\y) -- (6.12*\x,9*\y);

   % In der Farbe fill=gray!80!black!20, wie auch die Flcähe zuvor, siehe F2
   \draw[thin,rounded corners=5pt] (5.88*\x,7.8*\y) -- (6.125*\x,8.37*\y) -- (6.12*\x,9.24*\y);


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Druckkopf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
   \draw[thick,cyan!30!black] (4.88*\x,8.76*\y) -- (5.88*\x,8.76*\y);
   \draw[thick,cyan!30!black] (4.88*\x,9.6*\y) -- (5.88*\x,9.6*\y);
   \draw[thick,cyan!30!black] (5.88*\x,9.6*\y) -- (5.88*\x,8.76*\y);
   \draw[thick,cyan!30!black] (4.88*\x,8.76*\y) -- (4.88*\x,9.6*\y);
   \draw[thick,cyan!30!black] (5.88*\x,8.76*\y) -- (6.12*\x,9.24*\y);
   \draw[thick,cyan!30!black] (5.88*\x,9.6*\y) -- (6.12*\x,10.04*\y);
   \draw[thick,cyan!30!black]  (6.12*\x,9.24*\y) -- (6.12*\x,10.04*\y);
   \draw[thick,cyan!30!black] (5.88*\x,9.6*\y) -- (5.6*\x,11.5*\y);
   \draw[thick,cyan!30!black] (4.88*\x,9.6*\y) -- (4.6*\x,11.5*\y);
   \draw[thick,cyan!30!black] (5.6*\x,11.5*\y) -- (4.6*\x,11.5*\y);
   \draw[thick,cyan!30!black] (6.12*\x,10.04*\y) -- (6.2*\x,12.2*\y);
   \draw[thick,cyan!30!black] (5.6*\x,11.5*\y) -- (6.2*\x,12.2*\y);
   \draw[thick,cyan!30!black] (4.6*\x,11.5*\y) -- (5.2*\x,12.2*\y);
   \draw[thick,cyan!30!black] (6.2*\x,12.2*\y) -- (5.2*\x,12.2*\y);
   

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   %Querschnitt Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   \foreach \n in {0,...,3}
   \draw [thin,rounded corners =3pt,fill=gray!80!black!70] (0+\n*\x,0) rectangle (\x+\n*\x,\y);
   \foreach \n in {0,...,3}
   \draw [thin,rounded corners =3pt,fill=gray!80!black!60] (0+\n*\x,\y) rectangle (\x+\n*\x,2*\y);
   \foreach \n in {0,...,3}
   \draw [thin,rounded corners =3pt,fill=gray!80!black!50] (0+\n*\x,2*\y) rectangle (\x+\n*\x,3*\y);
   \foreach \n in {0,...,3}
   \draw [thin,rounded corners =3pt,fill=gray!80!black!40] (0+\n*\x,3*\y) rectangle (\x+\n*\x,4*\y);
   \foreach \n in {0,...,3}
   \draw [thin,rounded corners =3pt,fill=gray!80!black!30] (0+\n*\x,4*\y) rectangle (\x+\n*\x,5*\y);

\draw[red, dashed] (6.3,4.4) circle (20pt);


\end{tikzpicture}




\end{document}


Bartman
Forum-Meister
Forum-Meister
Beiträge: 2142
Registriert: Do 16. Jul 2009, 21:41
Wohnort: Hessische Provinz

Beitrag von Bartman »

Wie soll denn diese Füllung der umkreisten Fläche aussehen?

Code: Alles auswählen

\documentclass[preview]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\begin{document}
\begin{tikzpicture}
\def \x {1}
\def \y {0.5}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Flächen für die Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%seitlichen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   \draw[thin,fill=gray!80!black!70] (3.99*\x,0.05) -- (6.5*\x,5*\y+0.05)-- (6.5*\x,6*\y)--(3.925*\x,1*\y)-- cycle;
   \draw[thin,fill=gray!80!black!60](3.925*\x,1*\y) -- (6.5*\x,6*\y)--(6.5*\x,7*\y)--(3.925*\x,2*\y)--cycle;
   \draw[thin,fill=gray!80!black!50](3.925*\x,2*\y) -- (6.5*\x,7*\y)-- (6.5*\x,8*\y)--(3.925*\x,3*\y)--cycle;
   \draw[thin,fill=gray!80!black!30](3.925*\x,4*\y) -- (5.88*\x,7.8*\y)--(5.88*\x,8.76*\y)--(3.94*\x,4.99*\y)--cycle;
      %F1 :  
   \draw[thin,fill=gray!80!black!40](3.925*\x,3*\y) -- (6.5*\x,8*\y)--(6.5*\x,9*\y)--(3.925*\x,4*\y)--cycle; 
   
%oberen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\draw[thin,fill=gray!80!black!20]
    (0.06,4.96*\y) -- (2.5*\x,10*\y)-- (3.5*\x,10*\y)--(-0.02+\x,4.8*\y)--cycle
    (-0.04+\x,4.8*\y) -- (3.5*\x,10*\y)-- (4.5*\x,10*\y)--(-0.02+2*\x,4.8*\y)--cycle
    (-0.04+2*\x,4.8*\y) -- (4.5*\x,10*\y)--(4.82*\x,10*\y)--(4.88*\x,9.6*\y)--(4.88*\x,8.76*\y)--(-0.02+3*\x,4.8*\y)--cycle
       %F2:
    (-0.04+3*\x,4.8*\y) -- (4.88*\x,8.76*\y)--(5.88*\x,8.76*\y)--(3.94*\x,4.99*\y)--cycle
; 
   
   
   
%%%%%%%%      
%Begrenzungslinien der noch auszufüllenden Flächen
%%%%%%%%  
   % In der Farbe fill=gray!80!black!30, wie auch die Flcähe zuvor, siehe F1
    \draw (6.5*\x,9*\y) -- (6.12*\x,9*\y);

   % In der Farbe fill=gray!80!black!20, wie auch die Flcähe zuvor, siehe F2
   \draw[thin,rounded corners=5pt] (5.88*\x,7.8*\y) -- (6.125*\x,8.37*\y) -- (6.12*\x,9.24*\y);


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Druckkopf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
\draw[thick,cyan!30!black] 
   (4.88*\x,8.76*\y) -- (5.88*\x,8.76*\y)
   (4.88*\x,9.6*\y) -- (5.88*\x,9.6*\y)
   (5.88*\x,9.6*\y) -- (5.88*\x,8.76*\y)
   (4.88*\x,8.76*\y) -- (4.88*\x,9.6*\y)
   (5.88*\x,8.76*\y) -- (6.12*\x,9.24*\y)
   (5.88*\x,9.6*\y) -- (6.12*\x,10.04*\y)
   (6.12*\x,9.24*\y) -- (6.12*\x,10.04*\y)
   (5.88*\x,9.6*\y) -- (5.6*\x,11.5*\y)
   (4.88*\x,9.6*\y) -- (4.6*\x,11.5*\y)
   (5.6*\x,11.5*\y) -- (4.6*\x,11.5*\y)
   (6.12*\x,10.04*\y) -- (6.2*\x,12.2*\y)
   (5.6*\x,11.5*\y) -- (6.2*\x,12.2*\y)
   (4.6*\x,11.5*\y) -- (5.2*\x,12.2*\y)
   (6.2*\x,12.2*\y) -- (5.2*\x,12.2*\y)
;
   

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   %Querschnitt Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\foreach \m/\percent in {0/70,1/60,2/50,3/40,4/30}
    \foreach \n in {0,...,3}
        \draw [thin, rounded corners=3pt, fill=gray!80!black!\percent] 
            (0+\n*\x,\m*\y) rectangle (\x+\n*\x,{(\m+1)*\y})
        ;

\draw[red, dashed] (6.3,4.4) circle (20pt);
\end{tikzpicture}
\end{document}
Zuletzt geändert von Bartman am Di 25. Jun 2019, 18:01, insgesamt 2-mal geändert.

heinrich
Forum-Anfänger
Forum-Anfänger
Beiträge: 16
Registriert: Mo 14. Mai 2018, 19:28

Beitrag von heinrich »

So wie die Farben vorher Verlaufen.



Im Code sind einmal die Begrenzungslinien zu finden:

Code: Alles auswählen

%%%%%%%%      
%Begrenzungslinien der noch auszufüllenden Flächen
%%%%%%%%  
   % In der Farbe fill=gray!80!black!30, wie auch die Fläche zuvor, siehe F1
    \draw (6.5*\x,9*\y) -- (6.12*\x,9*\y);

   % In der Farbe fill=gray!80!black!20, wie auch die Fläche zuvor, siehe F2
   \draw[thin,rounded corners=5pt] (5.88*\x,7.8*\y) -- (6.125*\x,8.37*\y) -- (6.12*\x,9.24*\y);

Der obere Balken, der in den Druckkopf verläuft (Thema ist 3D-Drucken), soll die Fläche mit dem selben Grauton (gray!80!black!20) bis zu der ausgerundeten Linie ausfüllen.
Bis jetzt ist es einfach nur ein Rechteck im passenden Grauton, die letzte weiße Fläche mit der ausgerundeten Linie soll auch noch Grau werden.
Das wäre die erste Fläche.


Die andere Fläche ist direkt dahinter. Dort ändert sich aber der Grauton, da es sich um den zuvor gedruckten Strang handelt.



Danke für die Nachfrage, hoffe das es jetzt verständlicher ist

Bartman
Forum-Meister
Forum-Meister
Beiträge: 2142
Registriert: Do 16. Jul 2009, 21:41
Wohnort: Hessische Provinz

Beitrag von Bartman »

Sieh Dir die Antworten zu Wie kann ich die Fläche zwischen mehreren Pfaden füllen? an. Vielleicht sind die Ansätze für Dein Anliegen übertrieben, aber sie dürften machbar sein.

heinrich
Forum-Anfänger
Forum-Anfänger
Beiträge: 16
Registriert: Mo 14. Mai 2018, 19:28

Beitrag von heinrich »

Danke für den Link.

Wusste nicht das man den Befehl to [bend right=...] in eine cycle Umgebung einbauen kann...
Dann ist es recht simpel



hier ist die gesamte Abbildung, evtl ist der Code noch hilfreich für andere

Die beiden Smileys sollten eigentlich eine 8 sein, weiß nicht genau wie man sie vermeiden kann.


Code: Alles auswählen

\documentclass[10pt,open=right,twoside]{scrreprt} 
\usepackage[ngerman]{babel} 
\usepackage[T1]{fontenc} 
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{tikz-dimline} 
\usepackage{ifthen,xcolor}


\begin{document}



\begin{tikzpicture}
\def \x {1}
\def \y {0.5}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Flächen für die Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%seitlichen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\draw[thin,fill=gray!80!black!70] (3.99*\x,0.05) -- (6.5*\x,5*\y+0.05)-- (6.5*\x,6*\y)--(3.925*\x,1*\y)-- cycle;
	\draw[thin,fill=gray!80!black!60](3.925*\x,1*\y) -- (6.5*\x,6*\y)--(6.5*\x,7*\y)--(3.925*\x,2*\y)--cycle;
	\draw[thin,fill=gray!80!black!50](3.925*\x,2*\y) -- (6.5*\x,7*\y)-- (6.5*\x,8*\y)--(3.925*\x,3*\y)--cycle;
	\draw[thin,fill=gray!80!black!40](3.925*\x,3*\y) -- (6.5*\x,8*\y)--(6.5*\x,9*\y)--(3.925*\x,4*\y)--cycle;
	\draw[thin,fill=gray!80!black!30](3.925*\x,4*\y) -- (5.88*\x,7.8*\y) to [bend right=30.1] (6.13*\x,9.24*\y) --(3.94*\x,4.99*\y)--cycle;
    \draw[fill=gray!80!black!40,thin] (6.5*\x,9*\y) -- (5.88*\x,7.8*\y) to [bend right=28.2] (6.15*\x,9*\y) --  cycle;

	
%oberen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\draw[thin,fill=gray!80!black!20](0.06,4.96*\y) -- (2.5*\x,10*\y)-- (3.5*\x,10*\y)--(-0.02+\x,4.8*\y)--cycle;
	\draw[thin,fill=gray!80!black!20](-0.04+\x,4.8*\y) -- (3.5*\x,10*\y)-- (4.5*\x,10*\y)--(-0.02+2*\x,4.8*\y)--cycle;
	\draw[thin,fill=gray!80!black!20](-0.04+2*\x,4.8*\y) -- (4.5*\x,10*\y)--(4.82*\x,10*\y)--(4.88*\x,9.6*\y)--(4.88*\x,8.76*\y)--(-0.02+3*\x,4.8*\y)--cycle;
	\draw[thin,fill=gray!80!black!20](-0.04+3*\x,4.8*\y) --(4.88*\x,8.76*\y)--(5.88*\x,8.76*\y)--(3.94*\x,4.99*\y)--cycle;
	

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Druckkopf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%	
	\draw[thick,cyan!30!black] (4.88*\x,8.76*\y) -- (5.88*\x,8.76*\y);
	\draw[thick,cyan!30!black] (4.88*\x,9.6*\y) -- (5.88*\x,9.6*\y);
	\draw[thick,cyan!30!black] (5.88*\x,9.6*\y) -- (5.88*\x,8.76*\y);
	\draw[thick,cyan!30!black] (4.88*\x,8.76*\y) -- (4.88*\x,9.6*\y);
	\draw[thick,cyan!30!black] (5.88*\x,8.76*\y) -- (6.12*\x,9.24*\y);
	\draw[thick,cyan!30!black] (5.88*\x,9.6*\y) -- (6.12*\x,10.04*\y);
	\draw[thick,cyan!30!black]  (6.12*\x,9.24*\y) -- (6.12*\x,10.04*\y);
	\draw[thick,cyan!30!black] (5.88*\x,9.6*\y) -- (5.6*\x,11.5*\y);
	\draw[thick,cyan!30!black] (4.88*\x,9.6*\y) -- (4.6*\x,11.5*\y);
	\draw[thick,cyan!30!black] (5.6*\x,11.5*\y) -- (4.6*\x,11.5*\y);
	\draw[thick,cyan!30!black] (6.12*\x,10.04*\y) -- (6.2*\x,12.2*\y);
	\draw[thick,cyan!30!black] (5.6*\x,11.5*\y) -- (6.2*\x,12.2*\y);
	\draw[thick,cyan!30!black] (4.6*\x,11.5*\y) -- (5.2*\x,12.2*\y);
	\draw[thick,cyan!30!black] (6.2*\x,12.2*\y) -- (5.2*\x,12.2*\y) node[yshift=-3.9pt,midway, below, xshift=1.57cm,black]{Druckkopf};
	
	\draw[thin](6,5.3) -- (6.45,5.55);
	
	
%Beschriftung Layer / Druckbahn
	\draw[decorate,decoration={brace,amplitude=14pt}] (3.95*\x,-0.1) -- (0.05,-0.1) node[yshift=-20pt,midway, below]{4 Druckbahnen};
	\draw[decorate,decoration={brace,amplitude=14pt}, align=left] (-0.1,0.05) -- (-0.1,4.95*\y) node[midway,left, xshift=-20pt]{mit je 5\\ Layern};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%Querschnitt Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\foreach \n in {0,...,3}
	\draw [thin,rounded corners =3pt,fill=gray!80!black!70] (0+\n*\x,0) rectangle (\x+\n*\x,\y);
	\foreach \n in {0,...,3}
	\draw [thin,rounded corners =3pt,fill=gray!80!black!60] (0+\n*\x,\y) rectangle (\x+\n*\x,2*\y);
	\foreach \n in {0,...,3}
	\draw [thin,rounded corners =3pt,fill=gray!80!black!50] (0+\n*\x,2*\y) rectangle (\x+\n*\x,3*\y);
	\foreach \n in {0,...,3}
	\draw [thin,rounded corners =3pt,fill=gray!80!black!40] (0+\n*\x,3*\y) rectangle (\x+\n*\x,4*\y);
	\foreach \n in {0,...,3}
	\draw [thin,rounded corners =3pt,fill=gray!80!black!30] (0+\n*\x,4*\y) rectangle (\x+\n*\x,5*\y);


\draw[red,thick, dashed] (3.1,1) -- (3.9,1) node[midway,right,black,yshift=-0.25cm, xshift=1.2cm]{Verbundfläche};
\draw[<-] (3.8,1) -- (4.9,0.6);

%Oben links
\draw[fill=gray!80!black!40] (-1.9,3.95) -- (-1.5,3.95) to [bend right=35]  (-1.35,4.2) -- (-1.35,4.5) arc (90: 180 :0.55);
%%%0ben rechts
\draw[fill=gray!80!black!40] (-1.35,4.5) -- (-1.35,4.2) to [bend right=35] (-1.2,3.95) -- (-0.8,3.95) arc (0: 90 :0.55);
%%%Unten links
\draw[fill=gray!80!black!50] (-1.9,3.95) -- (-1.5,3.95) to [bend left=35]  (-1.35,3.8) -- (-1.35,3.4) arc (-90: -180 :0.55);
%Unten rechts
\draw[fill=gray!80!black!50] (-0.8,3.95) -- (-1.2,3.95) to [bend right=35]  (-1.35, 3.8) -- (-1.35,3.4) arc (-90: 0 :0.55);
\draw (-1.35,3.95)--(-0.6,4.7)node[midway,right,black,yshift=0.32cm, xshift=0.33cm,align=left]{Entstehender\\ Hohlraum};

\draw[dashed,white,thick] (-1.35,3.95) circle (0.55);
\draw[dashed,white,thick] (1,1.5) circle (0.3);
\draw[thin, <->] (0.78,1.75) -- (-0.85,3.62);


\end{tikzpicture}




\end{document}

Gast

Beitrag von Gast »

heinrich hat geschrieben:Die beiden Smileys sollten eigentlich eine 8 sein, weiß nicht genau wie man sie vermeiden kann.
Deaktiviere die Smileys in deinem Beitrag.

Bartman
Forum-Meister
Forum-Meister
Beiträge: 2142
Registriert: Do 16. Jul 2009, 21:41
Wohnort: Hessische Provinz

Beitrag von Bartman »

Ein paar Änderungsvorschläge:

Code: Alles auswählen

\documentclass[border=5pt]{standalone}
\usepackage[utf8]{inputenc}% für ältere TeX-Distributionen
\usepackage{pgfplots}
\usetikzlibrary{spy,backgrounds,arrows.meta}

\pgfplotsset{compat=newest}

\pgfdeclarelayer{foreground}
\pgfsetlayers{main,foreground}

\begin{document}
\begin{tikzpicture}[
    >=Stealth, 
    spy using outlines={circle, magnification=3, size=1.2cm, connect spies},
    brace/.style={decorate, decoration={brace, amplitude=14pt}}
]
\def \x {1}
\def \y {0.5}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Flächen für die Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%seitlichen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \draw[thin,fill=gray!80!black!70] (3.99*\x,0.05) -- (6.5*\x,5*\y+0.05)-- (6.5*\x,6*\y)--(3.925*\x,1*\y)-- cycle;
    \draw[thin,fill=gray!80!black!60](3.925*\x,1*\y) -- (6.5*\x,6*\y)--(6.5*\x,7*\y)--(3.925*\x,2*\y)--cycle;
    \draw[thin,fill=gray!80!black!50](3.925*\x,2*\y) -- (6.5*\x,7*\y)-- (6.5*\x,8*\y)--(3.925*\x,3*\y)--cycle;
    \draw[thin,fill=gray!80!black!40](3.925*\x,3*\y) -- (6.5*\x,8*\y)--(6.5*\x,9*\y)--(3.925*\x,4*\y)--cycle;
    \draw[thin,fill=gray!80!black!30](3.925*\x,4*\y) -- (5.88*\x,7.8*\y) to [bend right=30.1] (6.13*\x,9.24*\y) --(3.94*\x,4.99*\y)--cycle;
    \draw[fill=gray!80!black!40,thin] (6.5*\x,9*\y) -- (5.88*\x,7.8*\y) to [bend right=28.2] (6.15*\x,9*\y) --  cycle;

   
%oberen Flächen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \draw[thin,fill=gray!80!black!20]
        (0.06,4.96*\y) -- (2.5*\x,10*\y)-- (3.5*\x,10*\y)--(-0.02+\x,4.8*\y)--cycle
        (-0.04+\x,4.8*\y) -- (3.5*\x,10*\y)-- (4.5*\x,10*\y)--(-0.02+2*\x,4.8*\y)--cycle
        (-0.04+2*\x,4.8*\y)--(4.5*\x,10*\y)--(4.82*\x,10*\y)--(4.88*\x,9.6*\y)--
        (4.88*\x,8.76*\y)--(-0.02+3*\x,4.8*\y)--cycle
       %F2:
        (-0.04+3*\x,4.8*\y) -- (4.88*\x,8.76*\y)--(5.88*\x,8.76*\y)--(3.94*\x,4.99*\y)--cycle
    ; 
   

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Druckkopf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
    \draw[thick,cyan!30!black]
       (4.88*\x,8.76*\y) -- (5.88*\x,8.76*\y)
       (4.88*\x,9.6*\y) -- (5.88*\x,9.6*\y)
       (5.88*\x,9.6*\y) -- (5.88*\x,8.76*\y)
       (4.88*\x,8.76*\y) -- (4.88*\x,9.6*\y)
       (5.88*\x,8.76*\y) -- (6.12*\x,9.24*\y)
       (5.88*\x,9.6*\y) -- (6.12*\x,10.04*\y)
       (6.12*\x,9.24*\y) -- (6.12*\x,10.04*\y)
       (5.88*\x,9.6*\y) -- (5.6*\x,11.5*\y)
       (4.88*\x,9.6*\y) -- (4.6*\x,11.5*\y)
       (5.6*\x,11.5*\y) -- (4.6*\x,11.5*\y)
       (6.12*\x,10.04*\y) -- (6.2*\x,12.2*\y)
       (5.6*\x,11.5*\y) -- (6.2*\x,12.2*\y)
       (4.6*\x,11.5*\y) -- (5.2*\x,12.2*\y)
       (6.2*\x,12.2*\y) -- (5.2*\x,12.2*\y)
    ; 
   
   \draw[thin](6,5.3) -- + (30:5mm) node[right]{Druckkopf};
   
   
%Beschriftung Layer / Druckbahn
    \draw[brace] 
        (3.95*\x,-0.1) -- node[below=20pt]{4 Druckbahnen} (0.05,-0.1)
    ;
    \draw[brace] 
        (-0.1,0.05) -- node[left=20pt,align=left]{mit je 5\\Layern} (-0.1,4.95*\y)
    ;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   %Querschnitt Layer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \foreach \m/\percent in {0/70,1/60,2/50,3/40,4/30}
        \foreach \n in {0,...,3}
            \draw [thin, rounded corners=3pt, fill=gray!80!black!\percent]
                (0+\n*\x,\m*\y) rectangle (\x+\n*\x,{(\m+1)*\y})
            ; 


\draw[red, thick, dashed] (3.1,1) -- (3.9,1);
\draw[<-] (3.8,1) -- + (-20:1.2cm) node[right]{Verbundfläche};

\coordinate (zoom) at (-0.75,4);
\spy [<->] on (1,1.5) in node [dashed, left] at (zoom);
\begin{pgfonlayer}{foreground}
\draw ([xshift=-6mm]zoom) -- + (50:1.2cm) node[right,align=left]{Entstehender\\Hohlraum};
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
Zuletzt geändert von Bartman am Do 27. Jun 2019, 16:39, insgesamt 1-mal geändert.

heinrich
Forum-Anfänger
Forum-Anfänger
Beiträge: 16
Registriert: Mo 14. Mai 2018, 19:28

Beitrag von heinrich »

Jo danke!
Bei dir schauts besser aus

Antworten