I would like to know if it is possible to use van Kampen's theorem without knowing exactly what the intersecting space looks like.
So given $U$ and $V$, and an attaching map, is it possible to work out the fundamental group of $X=U\cup_{f}V$ without knowing how $X$ looks like, i.e. how do you get the relations only with the attaching map?
Consider the example: Given 2 solid tori ($S^1\times D^2$) $U$ and $V$, and attaching map $f: S^1\times S^1\rightarrow S^1\times S^1$, $f(z,w)=(z,zw)$, such that $X=U\cup_{f}V$, find the fundamental group of $X$. Can I proceed without knowing what $X$ looks like? (Do let me know what it looks like anyway, thanks!)