Overview
- This project needs to be completed in 4 parts
- 1.Design cut graphics, and its coordinate system.
- 2.Design the coordinates of the circular and circular cut locations.
- 3.Position the cut graphic onto the circle, and cut out the excess.
- 4.Copy multiple instances.
The first part: design cutting graphics, as well as its coordinate system
step 1:
- Create a curve function to cut the shape
- Method: Select the geometry in the 3D scene
step 2:
- Create a bounding box (BBox) function that creates a geometric bounding box for rotation
- Input parameters:
- C (Geometry): Geometry to contain
- P (Plane): BoundingBox orientation plane
- Output parameters:
- B (Box): Aligned bounding box in world coordinates
- B (Box): Bounding box in orientation plane coordinates
- Method: Receive the object created by the curve with the c parameter in the input parameter, and output the geometric bounding box of the bounding object in the global coordinate system.
step 3:
- Create a Deconstruct Brep (DeBrep) function to deconstruct the element (because the object generated by the BBox is a set of point and line surfaces, you need to deconstruct it into a single element), decompose the object into three basic elements: Point, Curve and Surface.
- Input parameters:
- Output parameters:
- F (Surface): Faces of Brep (Surface)
- E (Curve): Edges of Brep (Curve)
- V (Point): Vertices of Brep (Point)
- Methods: Import BBox function objects (geometric bounding box), deconstruct the object, and output a single surface element (Surface).
step 4:
- Create an Evaluate Surface (EvalSrf) function to set the local properties of the object’s coordinate system.
- Input parameters:
- S (Surface): Base surface
- uv (Point): {uv} coordinate to evaluate
- Output parameters:
- P (Point): Point at {uv}
- N (Vector): Normal at {uv}
- F (Plane): Frame at {uv}
- Method: import the deconstructed face object, access the Text panel function to set the {uv} value of the coordinate system, and export the plane coordinates system
- Note: When the input parameters of the S (surface) selected reparameterize property, the setting of the coordinate value can be accounted for (100% is 1, 80% is 0.8).
The second part: the design of circular and circular shear position of the coordinate system.
step 1:
- Create a circle function
- Input parameters:
- P (Plane): Base plane of circle
- R (Number): Radius of circle
- Output parameters:
- C (Circle): Resulting circle
- Method: Input parameters access a Number slider function, set the value. Output the result.
step 2:
- Create a bounding box (BBox) function that creates a geometric bounding box for rotation.
- Input parameters:
- C (Geometry): Geometry to contain
- P (Plane): BoundingBox orientation plane
- Output parameters:
- B (Box): Aligned bounding box in world coordinates
- B (Box): Bounding box in orientation plane coordinates
- Method: Receives the object created by circle with the C parameter in the input parameter and outputs the geometric bounding box that aligns the bound object in the global coordinate system.
step 3:
- Create a Horizontal Frame (HFframe) function, get four parameters along the curve, as the origin of the coordinates of the cut graph.
- Input parameters:
- C (Curve): Curve to evaluate
- t (Number): Parameter on curve domain to evaluate
- Output parameters:
- F (Plane): Horizontal curve frame at {t}
- Method: Obtain the object from the circle created in step 1, enter the C (Curve) parameter, and input the value of the Series function to the t (Number) parameter to output the plane coordinate.
step 4:
- Create a Rotate Plane (PRot) function that rotates the coordinates of the cutout.
- Input parameters:
- P (Plane): Plane to rotate
- A (Number): Rotation (counter clockwise) around plane z-axis in radians
- Output parameters:
- P (Plane): Rotated plane
- Method: From the coordinate system output by the HFframe function in the previous step, enter the parameter P (Plane) and set the input parameter A (Number) 0.5 * PI. Output P (Plane) coordinates.
The third part: positioning cut graphics to the circle, and then cut off the excess.
step 1:
- Create an Orient (Orient) function, positioning the cutout graphic on a circle.
- Input parameters:
- G (Geometry): Base geometry
- A (Plane): Initial plane
- B (Plane): Final plane
- Output parameters:
- G (Geometry): Reoriented geometry
- X (Transform): Transformation data
step 2:
- Create a Region Difference (RDiff) function, cut out the excess part.
- Input parameters:
- A (Curve): Curves to subtract from.
- B (Curve): Curves to subtract.
- P (Plane): Optional plane for boolean solution.
- Output parameters:
- R (Curve): Result outlines of boolean difference (A - B)
- Method: Enter the parameters A (Curve) circle, B (Curve) cut graphics, output the cut graphics.
The fourth part: copy multiple instances
- Create a Rectangular Array (ArrRec) to copy the shape.
- Input parameters:
- G (Geometry): Base geometry
- C (Rectangle): Rectangular array cell
- X (Integer): Number of elements in the array x-direction.
- Y (Integer): Number of elements in the array y-direction.
- Output parameters:
- G (Geometry): Arrayed geometry
- X (Transform): Transformation data
- Methods: 1.G (Geometry) complete graphics 2.C (Rectangle) circular geometric bounding box 3. Number of X direction> quantity 4. Number of Y direction.