To build a 3d room with 4 walls

조회 수: 41 (최근 30일)
GIRISH SATYA PAPOLU
GIRISH SATYA PAPOLU 2021년 5월 10일
댓글: GIRISH SATYA PAPOLU 2021년 5월 11일
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
Jan
Jan 2021년 5월 11일
편집: Jan 2021년 5월 11일
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 2021년 5월 11일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Adam Danz
Adam Danz 2021년 5월 11일
편집: Adam Danz 2021년 5월 11일
> 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
Adam Danz
Adam Danz 2021년 5월 11일
편집: Adam Danz 2021년 5월 11일
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 2021년 5월 11일
Sir,
I'll go through the guidelines you have given .
thank you once again,
with regards,
Girish

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by