# AutoCAD 2D에서 3D로

> 오토캐드 3D의 기본. 닫힌 프로파일을 돌출, 눌러 당기기, 회전하고 합집합과 차집합으로 2D 도면을 3D 솔리드로 만듭니다. 웹에서 무료로 쓰는 3D 솔리드(아직 일부).

AutoCAD에서 솔리드는 보통 2D 도면에서 시작합니다. 평면도처럼 그린 닫힌 프로파일을 어떤 높이까지 돌출하거나 축을 중심으로 회전한 다음, 다른 솔리드와 합치거나 다른 솔리드로 잘라 냅니다. MellowCAD의 3D 솔리드도 같은 방법, 같은 명령으로 만듭니다. 다만 아직 일부만 지원하며, 스윕, 로프트, 메쉬, 렌더링은 아직 없습니다. 각 섹션은 엔진이 그린 세션과, 입력하는 그대로의 명령 사용 내역을 보여 줍니다.

## 닫힌 프로파일 그리기

솔리드에는 닫힌 프로파일이 필요합니다. 닫힌 폴리선, 직사각형, 원 또는 영역입니다. 끝과 끝이 만나는 선도 여전히 별개의 객체입니다. `JOIN`(결합) 명령은 이를 하나의 폴리선으로, `REGION`(영역) 명령은 영역으로 만듭니다. 프로파일은 점을 입력하기 가장 쉬운 평면 뷰에서 그립니다.

## 돌출하기

`EXTRUDE`(돌출) 명령으로 프로파일을 선택하고 Enter 키를 누른 다음 높이를 입력합니다. 위에서 보면 솔리드는 프로파일과 똑같아 보입니다. `VIEW`(명명된 뷰) 명령이나 ViewCube로 뷰를 돌려 확인하고, `VSCURRENT`(비주얼 스타일) 명령으로 표시 방식을 선택합니다.

하나의 닫힌 폴리선으로 된 L자 프로파일을 30 돌출해 남동쪽에서 본 모습.

```text
Command: PLINE
Specify start point: 0,0
Current line-width is 0.00
Specify next point or [Arc/Halfwidth/Length/Undo/Width]: @80,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @0,15
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @-60,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @0,45
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @-20,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: C
Command: EXTRUDE
Current wire frame density:  ISOLINES=4, Closed profiles creation mode = Solid
Select objects to extrude or [MOde]: 1 found
Select objects to extrude or [MOde]:
Specify height of extrusion or [Direction/Path/Taper angle/Expression]: 30
Command: -VIEW
Enter an option [Orthographic]: SEI
Regenerating model.
Command: VSCURRENT
Enter an option [2dwireframe/Hidden/Conceptual] <2dwireframe>: H
Command: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or [All/Extents/Previous/Scale/Window/Object]: E
Command: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or [All/Extents/Previous/Scale/Window/Object]: 0.8x
```

## 닫힌 영역 눌러 당기기

`PRESSPULL`(눌러 당기기) 명령에는 프로파일이 필요 없습니다. 닫힌 영역의 안쪽을 클릭하고(별개의 선으로 둘러싸인 영역이어도 됩니다) 높이를 입력합니다. 솔리드의 면을 클릭하면 그 면을 밀어 넣거나 당겨 냅니다.

닫힌 영역을 안쪽에서 눌러 당기면 솔리드가 됩니다.

```text
Command: PRESSPULL
Select object or bounded area:
2 loops extracted.
1 Regions created.
Specify extrusion height or [Multiple]: -8
1 extrusion(s) created
Select object or bounded area:
Command: -VIEW
Enter an option [Orthographic]: SEI
Command: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or [All/Extents/Previous/Scale/Window/Object]: 0.8x
```

## 회전하기

`REVOLVE`(회전) 명령은 프로파일을 축을 중심으로 회전합니다. 프로파일을 선택하고, 두 점, 객체, 또는 X, Y, Z축으로 축을 지정한 다음 각도를 지정합니다. 기본값은 한 바퀴 전체입니다.

Y축을 중심으로 회전한 반단면.

```text
Command: REVOLVE
Current wire frame density:  ISOLINES=4, Closed profiles creation mode = Solid
Select objects to revolve or [MOde]: 1 found
Select objects to revolve or [MOde]:
Specify axis start point or define axis by [Object/X/Y/Z] <Object>: Y
Specify angle of revolution or [STart angle/Reverse/EXpression] <360>:
Command: -VIEW
Enter an option [Orthographic]: SEI
Command: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or [All/Extents/Previous/Scale/Window/Object]: 0.8x
```

## 솔리드 합치기와 빼기

`UNION`(합집합) 명령은 여러 솔리드를 하나로 만들고, `SUBTRACT`(차집합) 명령은 한 솔리드에서 하나 이상의 솔리드를 빼며, `INTERSECT`(교집합) 명령은 공통 부분을 남깁니다. 구멍은 관통하는 솔리드에서 원통을 빼서 만듭니다.

상자에서 원통을 빼면 관통 구멍이 됩니다.

```text
Command: SUBTRACT
Select solids, surfaces, and regions to subtract from ..
Select objects: 1 found
Select objects:
Select solids, surfaces, and regions to subtract ..
Select objects: 1 found
Select objects:
```

## 다음 단계

- 3D [연습도면](https://mellowcad.com/ko/docs/exercises.md): 영역과 한 번의 돌출로 만드는 [마운팅 플레이트](https://mellowcad.com/ko/docs/exercises/mounting-plate.md), 단면을 회전해 만드는 [풀리](https://mellowcad.com/ko/docs/exercises/pulley.md), 합치고 구멍을 뚫는 [베어링 블록](https://mellowcad.com/ko/docs/exercises/bearing-block.md).
- `3DORBIT`(3D 궤도) 명령은 마우스로 뷰를 돌리고, `VSCURRENT`는 면에 음영을 줍니다.
