Summary
Google Gemini를 통해 OpenSCAD 코드를 생성하였습니다.
OpenSCAD code was generated via Google Gemini.
다양한 길이의 문자열을 도장으로 만들 수 있습니다.
You can create a stamp from strings of various lengths.
출력할 때 도장면을 위로 하고 서포트를 부착해서 출력하는 것을 추천합니다.
When printing, we recommend printing with the print surface facing up and attaching support.
https://g.co/gemini/share/85f238267510
OpenSCAD 통합 도장 생성기 사용 설명서 (User Manual for OpenSCAD Unified Stamp Generator)
소개 (Introduction)
이 OpenSCAD 코드는 사용자가 원하는 텍스트와 모양으로 3D 도장 모델을 생성할 수 있도록 도와줍니다. 다양한 옵션을 설정하여 맞춤형 도장을 디자인하고 3D 프린팅용 STL 파일로 내보낼 수 있습니다.
This OpenSCAD code helps you generate 3D stamp models with custom text and shapes. You can configure various options to design personalized stamps and export them as STL files for 3D printing.
사용 방법 (How to Use)
OpenSCAD 설치: OpenSCAD 프로그램이 설치되어 있지 않다면, https://openscad.org/ 에서 다운로드하여 설치합니다.
Install OpenSCAD: If you don't have OpenSCAD installed, download and install it from https://openscad.org/.
코드 열기: 제공된 .scad 코드를 OpenSCAD 프로그램에서 엽니다.
Open Code: Open the provided .scad code file in the OpenSCAD program.
설정 수정: 코드 상단의 [도장 설정 / Stamp Settings] 섹션에서 원하는 대로 파라미터 값을 수정합니다. 각 파라미터에 대한 설명은 아래를 참고하세요.
Modify Settings: Modify the parameter values in the [도장 설정 / Stamp Settings] section at the top of the code as desired. See below for explanations of each parameter.
미리보기: F5 키를 눌러 변경사항을 적용하고 모델 미리보기를 확인합니다.
Preview: Press F5 to apply changes and preview the model.
렌더링 및 내보내기: 디자인이 만족스러우면 F6 키를 눌러 모델을 렌더링합니다. 렌더링이 완료되면 파일(File) > 내보내기(Export) > STL로 내보내기(Export as STL...) 메뉴를 선택하여 3D 프린팅용 STL 파일을 저장합니다.
Render and Export: When satisfied with the design, press F6 to render the model. Once rendering is complete, select File > Export > Export as STL... to save the STL file for 3D printing.
설정 파라미터 설명 (Parameter Explanations)
공통 설정 (Common Settings)
text_font: 도장에 사용할 글꼴 이름을 입력합니다. 시스템에 설치된 글꼴이어야 하며, 정확한 이름은 OpenSCAD 메뉴의 Help > Font List에서 확인할 수 있습니다. (예: "Malgun Gothic:style=Bold", "Arial:style=Bold")
Enter the name of the font to use for the stamp. It must be a font installed on your system. You can find the exact name in OpenSCAD under Help > Font List. (e.g., "Malgun Gothic:style=Bold", "Arial:style=Bold")
text_depth: 글자가 돌출되거나 파이는 깊이를 밀리미터(mm) 단위로 설정합니다.
Sets the depth (in mm) to which the text protrudes or is engraved.
base_plate_height: 도장 밑판의 두께를 밀리미터(mm) 단위로 설정합니다.
Sets the thickness (in mm) of the stamp's base plate.
도장 타입 선택 (Stamp Type Selection)
stamp_type: 도장의 타입을 선택합니다.
Select the type of stamp.
"embossed": 양각 (글자가 튀어나옴) / Text protrudes.
"debossed": 음각 (글자가 파임) / Text is engraved.
밑면 모양 선택 (Base Shape Selection)
base_shape: 도장 밑면의 모양을 선택합니다.
Select the shape of the stamp base.
"rectangle": 직사각형 / Rectangle.
"ellipse": 타원형 / Ellipse.
"square": 정사각형 / Square.
모양별 설정 (Shape-Specific Settings)
직사각형/타원형 설정 (Rectangle/Ellipse Settings) ( base_shape이 "rectangle" 또는 "ellipse"일 때 적용 / Applies when base_shape is "rectangle" or "ellipse")
stamp_text: 도장에 넣을 텍스트를 한 줄로 입력합니다.
Enter the text for the stamp (single line).
text_size_rect_ellipse: 글자 크기를 밀리미터(mm) 단위로 설정합니다.
Sets the text size (in mm).
base_sizing_mode: 밑면 크기 조절 방식을 선택합니다.
Select the base sizing mode.
"manual": 아래 base_width, base_depth 값으로 크기를 직접 지정합니다. / Manually specify the size using base_width and base_depth below.
"auto": base_margin 값을 기준으로 텍스트 주변에 자동으로 여백을 만들어 밑면 크기를 결정합니다. / Automatically determines the base size by adding a margin (base_margin) around the text.
base_width: (수동 모드) 밑면의 가로 길이(직사각형) 또는 장축 길이(타원)를 밀리미터(mm) 단위로 설정합니다. 텍스트 변경 시 수동 조절이 필요할 수 있습니다.
(Manual Mode) Sets the width (rectangle) or major axis length (ellipse) of the base (in mm). May need manual adjustment if stamp_text changes.
base_depth: (수동 모드) 밑면의 세로 길이(직사각형) 또는 단축 길이(타원)를 밀리미터(mm) 단위로 설정합니다.
(Manual Mode) Sets the depth (rectangle) or minor axis length (ellipse) of the base (in mm).
base_margin: (자동 모드) 텍스트 주변에 생성될 여백 크기를 밀리미터(mm) 단위로 설정합니다.
(Auto Mode) Sets the margin size (in mm) around the text.
정사각형 설정 (Square Settings) ( base_shape이 "square"일 때 적용 / Applies when base_shape is "square")
stamp_texts: 도장에 넣을 문자들을 한 글자씩 나누어 리스트 형태로 입력합니다. 글자는 자동으로 계산된 정사각형 그리드에 배치됩니다.
Enter the characters for the stamp as a list of single characters. The characters will be automatically arranged in a calculated square grid.
예시 (Example): ["가", "나", "다", "라"]
text_size_square: 글자의 기준 크기를 밀리미터(mm) 단위로 설정합니다. 실제 크기는 그리드 배치 시 자동으로 조절됩니다.
Sets the base text size (in mm). The actual size will be adjusted automatically during grid placement.
base_size: 정사각형 밑면의 한 변 길이를 밀리미터(mm) 단위로 설정합니다. (최대 25mm 권장)
Sets the side length of the square base (in mm). (Max 25mm recommended)
text_area_scale_factor: 테두리 공간 등을 확보하기 위해 글자가 배치되는 영역을 전체 밑면 크기 대비 얼마나 축소할지 비율로 설정합니다. (예: 0.9 = 90%)
Sets the ratio to scale down the text area relative to the total base size, typically to provide space for a border. (e.g., 0.9 = 90%)
테두리 설정 (Border Settings)
add_border: 양각(stamp_type = "embossed")일 경우, 밑면 테두리를 추가할지 여부를 설정합니다 (true 또는 false).
If stamp_type is "embossed", sets whether to add a border around the base (true or false).
border_thickness: 테두리의 두께를 밀리미터(mm) 단위로 설정합니다.
Sets the thickness of the border (in mm).
손잡이 관련 설정 (Handle Settings)
handle_base_diameter: 손잡이 밑부분의 지름을 설정합니다.
Sets the diameter of the bottom part of the handle.
handle_top_ball_diameter: 손잡이 윗부분의 가장 넓은 구형 부분의 지름을 설정합니다.
Sets the maximum diameter of the upper spherical part of the handle.
handle_height: 손잡이의 전체 높이를 설정합니다.
Sets the total height of the handle.
주의사항 (Notes)
글꼴 설치: 코드에서 지정한 text_font가 사용자의 컴퓨터에 설치되어 있어야 합니다.
Font Installation: The text_font specified in the code must be installed on your computer.
정사각형 텍스트 입력: base_shape을 "square"로 설정한 경우, stamp_texts 변수에는 반드시 한 글자씩 나누어 리스트 형태로 입력해야 합니다. (예: ["안", "녕", "하", "세", "요"])
Square Text Input: When base_shape is set to "square", you must input the text as a list of single characters in the stamp_texts variable (e.g., ["H", "e", "l", "l", "o"]).
미리보기 확인: 설정을 변경한 후에는 항상 F5 키로 미리보기를 확인하여 의도한 대로 모델이 생성되는지 확인하는 것이 좋습니다.
Preview Check: After changing settings, always press F5 to preview the model and ensure it looks as intended.
렌더링 시간: $fn 값이 높거나 모델이 복잡할 경우 렌더링(F6) 시간이 오래 걸릴 수 있습니다.
Rendering Time: Rendering (F6) may take longer if the $fn value is high or the model is complex.
Etiketler
Model Kaynağı
