How to detect when 2 surface plots collide ?
Afficher commentaires plus anciens
Hi,
I am creating a pipe work system using matlab script where the pipe is represented using surface plot. I want to be able to flag up a warning when 2 surface plots (pipes) clash with each other.
The script determins the direction of the pipe by searching the workspace data for pipe start nodes (SN) and end nodes (EN) (added to workspace before hand). It will then do the checks SNx - ENx~=0 , SNy-ENy~=0, SNz-ENz~=0. depending on the check results the pipe will be plotted in the order of X-section (if check ~=0), Y- section (if check ~=0) then Z- section (if check ~=0).
The 2 pipes I have clashing, 1 is only X-direction section of pipe and the clashing pipe is only Y-direction section of pipe.
looking for some code to add to my script that will flag up the collision ?
thank you.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!