The basic shape is rounded box minus two boxes (using difference command):

After the 'difference' is applied this is what we get:

Later the shape is further split into different parts using difference and intersection commands:

Code:
#declare phone_main_part = difference {
RoundBox(<-24.5,0,-55>,< 24.5,22,55>, 10.5)
box{<-24.5,-1,-55>,< 24.5,3.5,55>}
box{<-24.5,18.5,-55>,< 24.5,23,55>}
}
#declare volume_button = object {
box {<15.2, 9, -37.8>, <24.8, 14.4, -22.2>}
}
#declare phone_bottom_part = difference {
object { phone_main_part}
box{<-24.5,12,-55>,< 24.5,19,55>}
object { volume_button }
cylinder { <24.2, 10, 27>, < 30, 10, 27>, 4 }
cylinder { <22.2, 10, 27>, < 30, 10, 27>, 2 }
}
#declare phone_top_part = intersection {
object { phone_main_part}
box{<-24.5,12,-55>,< 24.5,19,55>}
}
#declare phone_insides_stub = object {
phone_top_part
scale <0.95,1.01,0.97>
no_shadow
}
#declare phone_chrome_edge = difference {
object { phone_top_part}
object { phone_insides_stub}
object { volume_button }
cylinder { <24.2, 10, 27>, < 30, 10, 27>, 4 }
no_shadow
}
No comments:
Post a Comment