To build a 3d room with 4 walls

39 vues (au cours des 30 derniers jours)
GIRISH SATYA PAPOLU
GIRISH SATYA PAPOLU le 10 Mai 2021
I have been experiencing a difficulty in designing a room with 4 walls to be preseted in 3D .a help would be much appreciated as I'm stuck in my middle of thesis.
With regards ,
GIRISH
  7 commentaires
Jan
Jan le 11 Mai 2021
Modifié(e) : Jan le 11 Mai 2021
A cube has 6 walls, if you consider floor and ceiling.
The example you are showing contains much more details than "4 walls". It is not clear what "design a room" exactly means. Adding "furnature" can be implemented as complicated as you want. You cannot expect, that the forum writes you a 3D modelling software. So please post, what you have tried so far. I've asked already, how your inputs are defined. But your current explanations are far too abstract to allow to help you.
GIRISH SATYA PAPOLU
GIRISH SATYA PAPOLU le 11 Mai 2021
I'm sorry for being too vague in my information,i need to design a room with 6 walls as you have said for testing refractions,reflections caused in a closed room with increasing complications as the process goes on like 1st only a cube with 6 walls,later with some windows and cupboards etc.
I'm sorry once again, Thank you so much for the help i have received from this forum .it has really taken me a step near to my goal.

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 11 Mai 2021
Modifié(e) : Adam Danz le 11 Mai 2021
> can you help in finding the patch
I can help you understand the concept so you can apply it to your thesis work.
There are multiple ways to draw 2D rectangles or 3D cubes within 3D axes. I'll use patch but also see surf which isn't much different from patch.
First read through the documentation page for the patch function and look at the examples. If you want to show only the edges of the rectangles/cubes, then set the FaceColor of surf/patch objects to None.
Example
% 2D wall
x = [-5 5 5 -5];
y = [6 6 6 6];
z = [0 0 3 3];
Just by looking at the [x,y,z] coordinates above, imagine where this wall will be in 3D axes. If you can't imagine where it will be then you don't understand a 3D coordinate systems and you'll need to fill that gap before you're able to move on.
figure()
patch(x,y,z,[1 1 1],'FaceColor','none','EdgeColor','m','LineWidth',2)
view(3)
xlabel('x')
ylabel('y')
zlabel('z')
grid on
axis equal % important
xlim([-6 6])
ylim([-6 6])
zlim([-1 6])
  3 commentaires
Adam Danz
Adam Danz le 11 Mai 2021
Modifié(e) : Adam Danz le 11 Mai 2021
This function may also be helpful for your task
It has options to set the face color to none or the facealpha to 0 which has the same effect.
GIRISH SATYA PAPOLU
GIRISH SATYA PAPOLU le 11 Mai 2021
Sir,
I'll go through the guidelines you have given .
thank you once again,
with regards,
Girish

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by