Okay, this is a complex request, combining 3D modeling with acoustic amplification. Here's a Rhino Python script to generate a phone stand designed for the Oppo Reno 10 Pro+, with a focus on passive amplification. I'll break down the code, explain the design choices, and provide important considerations. This is a starting point; you'll likely need to iterate on the design based on your printing material and desired sound quality.
Important Considerations Before You Start:
- Acoustic Amplification is Tricky: Passive amplification (without electronics) relies on carefully shaped cavities and resonant frequencies. It's very difficult to predict perfectly without physical testing. This design aims for a basic horn-like structure.
- Phone Dimensions: I'm using approximate dimensions for the Oppo Reno 10 Pro+. You must verify these dimensions with your actual phone and adjust the code accordingly. Accuracy is crucial for a good fit.
- Printing Material: PLA is common, but ABS or PETG might be better for durability and potentially slightly better acoustic properties.
- Print Orientation: Consider the print orientation to minimize supports and maximize strength. I'll suggest an orientation in the comments.
- Rhino 5 Compatibility: This code is written for Rhino 5. Rhino 7 and 8 have some differences in the API.
- Rhino Python Editor: You'll need the Rhino Python editor installed in Rhino 5.
Rhino Python Script (Oppo Reno 10 Pro+ Phone Stand with Amplifier)
import rhinoscriptsyntax as rs
import math
# --- Phone Dimensions (APPROXIMATE - VERIFY!) ---
phone_width = 76.8 # mm
phone_height = 162.7 # mm
phone_thickness = 8.8 # mm
# --- Stand Dimensions ---
stand_base_width = 100 # mm
stand_base_depth = 80 # mm
stand_height = 100 # mm
horn_length = 60 # mm
horn_opening_width = 120 # mm
horn_opening_height = 40 # mm
horn_taper_angle = 15 # degrees
# --- Wall Thickness ---
wall_thickness = 3 # mm
# --- Fillet Radius ---
fillet_radius = 5 # mm
# --- Function to create a box ---
def create_box(width, depth, height, x, y, z):
box = rs.AddBox(x, y, z, width, depth, height)
return box
# --- Function to create a fillet edge ---
def fillet_edge(edge_points):
rs.Fillet(edge_points, fillet_radius, 0)
# --- Create the Base ---
base = create_box(stand_base_width, stand_base_depth, 20, 0, 0, 0)
# --- Create the Vertical Support ---
support = create_box(stand_base_width - 2*wall_thickness, stand_base_depth - 2*wall_thickness, stand_height - 20, 0, 0, 20)
# --- Create the Phone Cradle ---
cradle_width = phone_width + 2*wall_thickness
cradle_depth = phone_thickness + 2*wall_thickness
cradle_height = phone_height + 2*wall_thickness
cradle = create_box(cradle_width, cradle_depth, cradle_height, (stand_base_width - cradle_width)/2, (stand_base_depth - cradle_depth)/2, stand_height - cradle_height)
# --- Create the Horn (Amplifier) ---
# This is a simplified horn shape. More complex shapes could be generated.
horn_points = [
(stand_base_width/2 - horn_opening_width/2, stand_base_depth, stand_height),
(stand_base_width/2 + horn_opening_width/2, stand_base_depth, stand_height),
(stand_base_width/2 + horn_opening_width/2, stand_base_depth, stand_height - horn_length),
(stand_base_width/2 - horn_opening_width/2, stand_base_depth, stand_height - horn_length)
]
horn_surface = rs.AddLoft(horn_points)
# --- Boolean Operations (Subtract to create hollows) ---
# Subtract the phone space from the cradle
rs.BooleanDifference(cradle, [support], keep_result=True)
# Subtract the phone space from the horn
rs.BooleanDifference(horn_surface, [support], keep_result=True)
# --- Filleting ---
# Fillet edges for aesthetics and comfort
# Example: Fillet the top edges of the base
# edge_points = [(0, 0, 20), (stand_base_width, 0, 20), (stand_base_width, stand_base_depth, 20), (0, stand_base_depth, 20)]
# fillet_edge(edge_points)
# --- Combine Objects (Union) ---
# Combine the base, support, cradle, and horn into a single object
rs.BooleanUnion([base, support, cradle, horn_surface], keep_result=True)
# --- Print Orientation Suggestion ---
# Orient the stand with the base flat on the build plate. This minimizes supports.
# --- Cleanup ---
# rs.DeleteObjects(base) # Delete individual components after union
# rs.DeleteObjects(support)
# rs.DeleteObjects(cradle)
# rs.DeleteObjects(horn_surface)
print("Phone stand generated!")
How to Use the Script:
- Open Rhino 5.
- Open the Rhino Python Editor: Type
EditPythonScript in the Rhino command line.
- Copy and Paste: Copy the entire script above and paste it into the Rhino Python Editor.
- Adjust Dimensions: Crucially, verify and adjust the
phone_width, phone_height, and phone_thickness variables to match your actual Oppo Reno 10 Pro+ dimensions. Also, adjust other dimensions to your liking.
- Run the Script: Click the "Run" button (the green play button) in the Rhino Python Editor.
- Inspect and Modify: Rhino will generate the phone stand. Inspect it carefully. You may need to adjust the dimensions, horn shape, or add features (like cable management) to suit your needs.
- Save as STL: Select the generated object in Rhino and export it as an STL file (
File > Export Selected..., choose STL as the file type).
- Slice and Print: Open the STL file in your slicer software (e.g., Cura, PrusaSlicer) and prepare it for 3D printing.
Explanation of the Code:
- Import Libraries: Imports
rhinoscriptsyntax (for Rhino commands) and math.
- Define Dimensions: Sets variables for phone dimensions, stand dimensions, wall thickness, and fillet radius. This is where you customize the design.
create_box() Function: A helper function to create boxes easily.
fillet_edge() Function: A helper function to create fillets.
- Create Base, Support, Cradle: Creates the basic shapes of the stand using
rs.AddBox().
- Create Horn: Creates a simplified horn shape using
rs.AddLoft(). This is the amplification part. The horn_points define the shape.
- Boolean Operations: Uses
rs.BooleanDifference() to subtract the phone space from the cradle and horn, creating hollows. rs.BooleanUnion() combines all the parts into a single solid object.
- Filleting: Adds fillets to edges for a smoother look and feel. The example shows how to fillet the top edges of the base.
- Print Orientation: Suggests a print orientation for minimizing supports.
- Cleanup: Deletes the individual components after the union operation (commented out for debugging).
Further Improvements and Customization:
- More Complex Horn Shape: Experiment with different horn shapes. You could use mathematical functions (e.g., exponential curves) to define the horn's profile. Consider using
rs.AddCurve() and rs.AddSurface() to create more organic shapes.
- Resonant Cavity: Design a resonant cavity within the stand to amplify specific frequencies. This is very challenging and requires acoustic analysis.
- Cable Management: Add channels or holes to route charging cables.
- Adjustable Angle: Design the stand with an adjustable angle for the phone.
- Non-Slip Feet: Add small rubber feet to the base to prevent the stand from sliding.
- Phone Grip: Add small features to the cradle to hold the phone securely.
- Test and Iterate: Print the stand, test the sound amplification, and make adjustments to the design based on your results. This is an iterative process.
Disclaimer:
This script is provided as a starting point. I cannot guarantee that it will produce perfect acoustic amplification. The effectiveness of the amplification will depend on the printing material, the accuracy of the dimensions, and the specific acoustic properties of your phone. You'll need to experiment and iterate on the design to achieve the best results. Always verify dimensions before printing.