Perhaps you get a big surprise when you see my code. I calculated all coordinates of points of intersection.
\documentclass[border=3mm,12pt]{standalone}
\usepackage{fouriernc}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{intersections,calc,backgrounds}
\tikzset{ hidden/.style = {thick, dashed}}
\tikzset{%
add/.style args={#1 and #2}{
to path={%
($(\tikztostart)!-#1!(\tikztotarget)$)--($(\tikztotarget)!-#2!(\tikztostart)$)%
\tikztonodes}}}
\begin{document}
\tdplotsetmaincoords{70}{20}
\begin{tikzpicture}[tdplot_main_coords,scale=1.3]
\pgfmathsetmacro\a{4}
\pgfmathsetmacro\h{5}
% definitions
\path
coordinate(A) at (0,0,0)
coordinate (B) at (\a,0,0)
coordinate (C) at(\a,\a,0)
coordinate (D) at (0,\a,0)
coordinate (T) at (1/2*\a, 1/2*\a, \h)
coordinate (Q) at (1/6*\a, 1/2*\a, 1/3*\h)
coordinate (P) at (2/3*\a, 2/3*\a, 2/3*\h)
coordinate (R) at (\a, -1/3*\a, 0)
coordinate (Y) at (5/18*\a, 13/18*\a, 5/9*\h)
coordinate (E) at (5/6*\a, 1/6*\a, 1/3*\h)
coordinate (V) at (1/3*\a, 0, 0)
coordinate (Z) at (0, 1/6*\a, 0)
coordinate (X) at (1/2*\a, 7/6*\a, \h);
\draw[hidden,thick]
(A) -- (C) (B) -- (D) (A)--(D) (T)-- (C) (T)-- (D) (C) -- (D) (X) -- (Z) (Y) -- (P) (V) -- (Z);
\draw [thick] (T)-- (C) (A) -- (B) -- (C) (T)-- (A) (T)-- (R) -- (X) -- cycle (T)-- (B) (E) -- (V) -- (R)
;
\fill[yellow,fill opacity=0.4] (P) -- (Y) -- (Z) -- (V) -- (E) -- cycle;
\foreach \point/\position in {A/below,B/below,C/below,D/right,T/above,P/right,R/below,E/right,Q/left,V/below,X/right,Y/left,Z/right}
{
\fill (\point) circle (1.2pt);
\node[\position=.3pt] at (\point) {$\point$};
}
\end{tikzpicture}
\end{document}
With \tdplotsetmaincoords{70}{290}
\documentclass[border=3mm,12pt]{standalone}
\usepackage{fouriernc}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{intersections,calc,backgrounds}
\tikzset{ hidden/.style = {thick, dashed}}
\begin{document}
\tdplotsetmaincoords{70}{290}
\begin{tikzpicture}[tdplot_main_coords,scale=1.3]
\pgfmathsetmacro\a{4}
\pgfmathsetmacro\h{5}
% definitions
\path
coordinate(A) at (0,0,0)
coordinate (B) at (\a,0,0)
coordinate (C) at(\a,\a,0)
coordinate (D) at (0,\a,0)
coordinate (T) at (1/2*\a, 1/2*\a, \h)
coordinate (Q) at (1/6*\a, 1/2*\a, 1/3*\h)
coordinate (P) at (2/3*\a, 2/3*\a, 2/3*\h)
coordinate (R) at (\a, -1/3*\a, 0)
coordinate (Y) at (5/18*\a, 13/18*\a, 5/9*\h)
coordinate (E) at (5/6*\a, 1/6*\a, 1/3*\h)
coordinate (V) at (1/3*\a, 0, 0)
coordinate (Z) at (0, 1/6*\a, 0)
coordinate (X) at (1/2*\a, 7/6*\a, \h);
\draw[hidden,thick]
(A) -- (C) (B) -- (D) (B) -- (C) (T)-- (C) (T)-- (C) (C) -- (D) (Y) -- (P) (V) -- (Z) (B) -- (R);
\draw [thick] (T)-- (D) (T)-- (A) (T)-- (R) -- (X) -- cycle (T)-- (B) (E) -- (V) -- (R) (A)--(D) (A)-- (B) (X) -- (Z)
;
\fill[yellow,fill opacity=0.4] (P) -- (Y) -- (Z) -- (V) -- (E) -- cycle;
\foreach \point/\position in {A/below,B/below,C/below,D/below,T/above,P/right,R/below,E/above,Q/left,V/below,X/above,Y/left,Z/below}
{
\fill (\point) circle (1.2pt);
\node[\position=.3pt] at (\point) {$\point$};
}
\end{tikzpicture}
\end{document}
This code can use with Q
inside the triangle TAD
(see at https://en.wikipedia.org/wiki/Convex_combination). You can view at many angles by changing the value of u
and v
.
\documentclass[border=3mm,12pt]{standalone}
\usepackage{fouriernc}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{intersections,calc,backgrounds}
\tikzset{ hidden/.style = {thick, dashed}}
\begin{document}
\tdplotsetmaincoords{70}{290}
\begin{tikzpicture}[tdplot_main_coords,scale=1.3,line join = round, line cap = round]
\pgfmathsetmacro\a{6}
\pgfmathsetmacro\h{5}
\pgfmathsetmacro\u{2/5}
\pgfmathsetmacro\v{1/6}
% definitions
\path
coordinate(A) at (0,0,0)
coordinate (B) at (\a,0,0)
coordinate (C) at(\a,\a,0)
coordinate (D) at (0,\a,0)
coordinate (T) at (1/2*\a, 1/2*\a, \h)
coordinate (Q) at ({1/2*\v*\a}, {1/2*\v*\a+(1-\v-\u)*\a}, {\v*\h})
coordinate (P) at (2/3*\a, 2/3*\a, 2/3*\h)
coordinate (R) at (\a, -1/3*\a, 0)
coordinate (Y) at ({\a*(3*\u+2*\v)/(2*(2+3*\u))}, {(3*\u-2*\v+4)*\a/(2*(2+3*\u))}, {(3*\u+2*\v)*\h/(2+3*\u)})
coordinate (E) at (5/6*\a, 1/6*\a, 1/3*\h)
coordinate (V) at ({\a*(3*\u+5*\v-3)/(3*\u+6*\v-4)},0,0)
coordinate (Z) at (0,{\a*(3*\u+5*\v-3)/(3*(-1+\v))},0)
coordinate (X) at (1/2*\a, 7/6*\a, \h);
\draw[hidden,thick]
(A) -- (C) (B) -- (D) (B) -- (C) (T)-- (C) (T)-- (C) (C) -- (D) (Y) -- (P) (V) -- (Z) (B) -- (R) ;
\draw [thick] (T)-- (D) (T)-- (A) (T)-- (R) -- (X) -- cycle (T)-- (B) (E) -- (V) -- (R) (A)--(D) (A)-- (B) (X) -- (Z)
;
\fill[yellow,fill opacity=0.4] (P) -- (Y) -- (Z) -- (V) -- (E) -- cycle;
\foreach \point/\position in {A/below,B/below,C/below,D/below,T/above,P/right,R/below,E/above,Q/left,V/below,X/above,Y/left,Z/below}
{
\fill (\point) circle (1.2pt);
\node[\position=.3pt] at (\point) {$\point$};
}
\end{tikzpicture}
\end{center}
\begin{center}
\begin{tikzpicture}[tdplot_main_coords,scale=1.3,line join = round, line cap = round]
\pgfmathsetmacro\a{6}
\pgfmathsetmacro\h{5}
\pgfmathsetmacro\u{3/5}
\pgfmathsetmacro\v{1/3}
% definitions
\path
coordinate(A) at (0,0,0)
coordinate (B) at (\a,0,0)
coordinate (C) at(\a,\a,0)
coordinate (D) at (0,\a,0)
coordinate (T) at (1/2*\a, 1/2*\a, \h)
coordinate (Q) at ({1/2*\v*\a}, {1/2*\v*\a+(1-\v-\u)*\a}, {\v*\h})
coordinate (P) at (2/3*\a, 2/3*\a, 2/3*\h)
coordinate (R) at (\a, -1/3*\a, 0)
coordinate (Y) at ({\a*(3*\u+2*\v)/(2*(2+3*\u))}, {(3*\u-2*\v+4)*\a/(2*(2+3*\u))}, {(3*\u+2*\v)*\h/(2+3*\u)})
coordinate (E) at (5/6*\a, 1/6*\a, 1/3*\h)
coordinate (V) at ({\a*(3*\u+5*\v-3)/(3*\u+6*\v-4)},0,0)
coordinate (Z) at (0,{\a*(3*\u+5*\v-3)/(3*(-1+\v))},0)
coordinate (X) at (1/2*\a, 7/6*\a, \h);
\draw[hidden,thick]
(A) -- (C) (B) -- (D) (B) -- (C) (T)-- (C) (T)-- (C) (C) -- (D) (Y) -- (P) (V) -- (Z) (B) -- (R) ;
\draw [thick] (T)-- (D) (T)-- (A) (T)-- (R) -- (X) -- cycle (T)-- (B) (E) -- (V) -- (R) (A)--(D) (A)-- (B) (X) -- (Z)
;
\fill[yellow,fill opacity=0.4] (P) -- (Y) -- (Z) -- (V) -- (E) -- cycle;
\foreach \point/\position in {A/below,B/below,C/below,D/below,T/above,P/right,R/below,E/above,Q/left,V/below,X/above,Y/left,Z/below}
{
\fill (\point) circle (1.2pt);
\node[\position=.3pt] at (\point) {$\point$};
}
\end{tikzpicture}
with \pgfmathsetmacro\u{3/5}
\pgfmathsetmacro\v{1/3}
, we get
S
andQ
. E.g,Q
is centroid of the triangleTAD
. If you don't do that, The section can be a quadrilateral or a pentagon.