优化skill,添加特征树、编辑窗口

This commit is contained in:
2026-08-07 17:44:12 +08:00
parent 35e18ca956
commit 5fbcf2c0b8
70 changed files with 13076 additions and 465 deletions
@@ -0,0 +1,195 @@
# Bearing housing reference
Read this file when the request is for a bearing housing, bearing seat, bearing
support, pillow block, flanged bearing housing, cartridge bearing holder,
`轴承座`, `轴承支座`, `轴承座壳体`, or `带座轴承` housing.
This reference improves first-pass geometry structure only. It does not certify
bearing fit, tolerance class, coaxiality, lubrication, load capacity, sealing,
casting quality, or manufacturability.
## Object boundary
By default, model the machined housing/seat part that supports a bearing. Do not
model the rolling elements, cage, shaft, bolts, grease nipple, seals, or a full
mounted-bearing assembly unless the user explicitly asks for those as separate
parts.
If the prompt says `bearing`, `bearing seat`, or `轴承座` without more detail,
the semantic core is the support body with a bearing bore and mounting features.
## Recognition
Use this reference when the request includes:
- English: bearing housing, bearing seat, bearing support, pillow block,
plummer block, flanged bearing housing, cartridge bearing holder.
- Chinese: 轴承座, 轴承支座, 轴承座壳体, 立式轴承座, 法兰轴承座, 带座轴承.
- Adjacent intent: shaft clearance, bearing bore, bearing pocket, mounting feet,
flange mount, bolt holes, cap, split housing, support ribs, grease port.
## Core invariants
A generated bearing housing should include:
- A bearing bore or bearing pocket sized by a named bearing outer diameter.
- A shaft clearance axis coaxial with the bearing bore.
- Material around the bore thick enough to read as support, not just a thin ring.
- A mounting method: base feet, flange, side lugs, or plate mount.
- Mounting holes with symmetric placement relative to the functional datum.
- A stable datum convention: bearing axis and mounting face are primary.
- Edge relief: practical chamfers/fillets after major cuts.
For a pillow-block style housing, the minimum recognizable structure is:
- Flat base.
- Raised bearing boss or arched support.
- Horizontal bearing bore through the support.
- Two base mounting holes.
- Optional ribs connecting boss to base.
## Default strategy
When under-specified, generate a simple pillow-block bearing housing:
- Bearing axis along X.
- Flat rectangular base on the XY plane.
- Bearing center above the base by `bearing_center_height`.
- Cylindrical or rounded boss around the bearing bore.
- Coaxial through bore for shaft clearance plus a larger bearing seat/pocket.
- Two elongated or round mounting holes in the base, symmetric about the Y axis.
- Two ribs from base to bearing boss if there is enough room.
- Fillets/chamfers last.
Do not default to a full assembly. Do not default to visible bearing balls. Do
not default to a random bracket with holes but no bearing bore.
## Common variants
### Pillow block / plummer block
- Base-mounted housing with horizontal bearing axis.
- Two or four mounting holes in the base.
- Raised central boss, arch, or saddle around the bore.
- Optional split cap only if the user asks for split housing or cap bolts.
### Flanged bearing housing
- Circular, square, oval, or diamond flange around the bearing bore.
- Bearing axis usually normal to the flange face.
- Bolt holes arranged on a bolt circle or symmetric flange pattern.
- Optional pilot lip or locating register on the mounting face.
### Plate-mounted bearing seat
- Flat or block-like plate with bearing pocket.
- Bearing axis may be normal to the plate.
- Mounting holes belong to the plate datum, not random locations.
### Split bearing housing
- Lower base and upper cap are separate parts or clearly separated bodies.
- Cap bolts and split plane must be represented if split form is requested.
- If source-level assembly is not needed, a simplified monolithic split-line
groove is acceptable, but label the assumption.
### Cartridge bearing holder
- Cylindrical sleeve-like body with flange or clamp features.
- Bearing pocket and shaft clearance are coaxial.
- Include retaining shoulder or snap-ring groove when requested.
## Required parameter roles
Use semantic parameters before modeling:
- `bearing_outer_diameter`
- `bearing_width`
- `shaft_diameter`
- `shaft_clearance_diameter`
- `bearing_bore_diameter`
- `bearing_bore_depth`
- `bearing_center_height`
- `wall_thickness`
- `base_length`
- `base_width`
- `base_thickness`
- `mount_hole_diameter`
- `mount_hole_spacing_x`
- `mount_hole_spacing_y`
- `boss_outer_diameter`
- `boss_width`
- `flange_outer_diameter`
- `flange_thickness`
- `bolt_count`
- `bolt_circle_diameter`
- `rib_thickness`
- `fillet_radius`
Only define optional parameters used by the selected variant.
## Feature roles to plan explicitly
Use these roles in the CAD brief and source structure:
- `mounting_base`
- `bearing_boss`
- `bearing_seat_bore`
- `shaft_clearance_bore`
- `mounting_holes`
- `flange_mount`
- `pilot_lip`
- `support_ribs`
- `split_cap`
- `cap_bolts`
- `retaining_groove`
- `grease_port`
- `datum_mounting_face`
- `datum_bearing_axis`
## Construction sequence
1. Select the variant from the prompt. If no variant is specified, use pillow
block.
2. Define the datum system:
- pillow block: base bottom face is Z=0; bearing axis is X.
- flanged housing: flange mounting face is the primary plane; bore axis is
normal to it.
3. Build the base, flange, or plate body first.
4. Add the bearing boss/support body and ensure it intersects the base/flange.
5. Cut the shaft clearance bore and bearing seat coaxially.
6. Cut mounting holes using symmetric positions or bolt circle pattern.
7. Add ribs only when they intersect both base/flange and boss.
8. Add optional split line, cap features, grease port, retaining groove, or pilot
lip if requested.
9. Apply chamfers and fillets last.
For through bores and mounting holes, overshoot cutting tools through the target
faces. Avoid coplanar cutting tools.
## Common failures to prevent
- A generic bracket with no bearing bore.
- A ring with no mounting method.
- Bearing bore and shaft clearance not coaxial.
- Missing bearing center height in pillow-block form.
- Mounting holes asymmetric when the variant implies symmetry.
- Ribs that float or only touch at an edge.
- Base thinner than mounting-hole diameter without reason.
- Side openings or decorative slots with no bearing-seat purpose.
- Generating balls, cages, shafts, fasteners, or seals when the user asked only
for the housing.
- Confusing bearing housing with shaft, flange, or motor mount.
## Validation targets
After generation, inspect or reason about:
- Bearing bore diameter/depth and shaft clearance diameter.
- Coaxiality of bearing bore and shaft clearance.
- Bearing center height above mounting face for pillow-block form.
- Base or flange dimensions and thickness.
- Mounting-hole count, size, and symmetry or bolt-circle diameter.
- Boss wall thickness around bearing seat.
- Rib attachment to both base/flange and boss when ribs exist.
- Single connected solid unless the user requested an assembly or split housing.
@@ -0,0 +1,160 @@
# Cup / mug reference
Read this file when the request is for a drinking vessel: cup, mug, water cup,
tumbler, drinking cup, tea cup, coffee cup, handled cup, travel mug,
`水杯`, `杯子`, `马克杯`, or `茶杯`.
This reference improves first-pass geometry structure only. It does not certify
food safety, insulation, thermal performance, ergonomics, leak resistance, or
manufacturability.
## Recognition
Use this reference when the prompt describes a vessel whose primary geometry is
an open container for liquid. Distinguish the common cases:
- `cup` / `水杯` / `drinking cup`: default open cup, usually without handle.
- `mug` / `马克杯` / `handled cup`: open cup with one handle on the side.
- `tumbler`: taller cup, optionally with a lid, usually without handle.
- `travel mug`: handled cup with a lid; may be an assembly if the lid is modeled.
- `bottle`: do not use this reference unless the user explicitly wants a cup-like
bottle or bottle mug hybrid.
If the prompt does not mention a handle, do not add one by default.
## Core invariants
A recognizable cup should have:
- An open top.
- A hollow interior cavity.
- A continuous side wall.
- A closed bottom.
- A continuous rim at the opening.
- A stable standing base or foot ring.
A handled mug should add:
- Exactly one main handle unless the prompt requests multiple handles.
- The handle mounted on one side of the cup body.
- Two attachment regions that intersect the cup body solidly.
- A clear gap between handle and cup body so the hand can pass through.
- A loop, C-shape, or arched form that reads as a graspable handle, not a fin,
tab, rib, or broken bracket.
## Default strategy
When the request is just `cup` or `水杯`, generate a simple open cup with no
handle:
- Revolved outer body.
- Hollow interior.
- Closed bottom.
- Slight outward taper or cylindrical wall.
- Small rim radius or lip.
- Optional foot ring.
When the request is `mug`, `马克杯`, or `handled cup`, generate the same cup
body plus one handle.
## Handle strategy
The handle is the failure-prone part, so make it explicit:
- The handle must be a single continuous shape.
- It should attach to the cup body at two distinct points on the same side.
- The two attachment points should be vertically separated and usually near the
upper-middle and lower-middle height of the cup.
- The handle should project outward far enough to create finger clearance, but
not so far that it looks like a secondary looped part.
- The handle cross-section should be rounded or softly rectangular, not a thin
blade.
- The handle opening should remain open; do not fill the inside of the loop with
a solid web unless the prompt asks for a closed grip.
- Avoid multiple disconnected handle fragments, fins, or stray tabs.
- The handle should not attach at the rim edge only; it should engage the side
wall with real thickness.
## Required parameter roles
Use semantic parameters before modeling:
- `height`
- `top_outer_diameter`
- `bottom_outer_diameter`
- `wall_thickness`
- `bottom_thickness`
- `inner_depth`
- `rim_radius`
- `rim_thickness`
- `foot_ring_diameter`
- `foot_ring_height`
- `handle_thickness`
- `handle_width`
- `handle_clearance`
- `handle_projection`
- `handle_attach_height_top`
- `handle_attach_height_bottom`
- `handle_attach_offset`
- `handle_loop_radius`
- `handle_loop_height`
Only define the handle parameters when a handle is requested.
## Feature roles to plan explicitly
- `cup_body`
- `inner_cavity`
- `rim`
- `base`
- `foot_ring`
- `handle`
- `handle_attachment_upper`
- `handle_attachment_lower`
- `handle_clearance`
- `lid_seat` or `lid_interface` if a lid is requested
## Construction sequence
1. Build the cup body first using revolve or a smooth profile sweep.
2. Hollow the interior while preserving the bottom thickness.
3. Add the rim and optional foot ring.
4. If a handle is requested, place it on one side only.
5. Model the handle as one continuous loop or arched solid with two clear
attachment zones.
6. Fuse the handle to the cup body so it reads as one coherent mug, not as a set
of touching tabs.
7. Add a lid only if the prompt explicitly requests a covered container.
8. Apply final fillets/chamfers last.
For the handle, the tool or sweep profile should overshoot into the cup wall at
both attachment regions. Avoid tangent-only contact.
## Common failures to prevent
- Solid cup with no hollow interior.
- Cup with no bottom.
- Cup body turned into a bottle or vase shape when the prompt says cup.
- Handle omitted when the prompt says mug or handled cup.
- Handle added when the prompt only says cup or water cup.
- Handle split into two disconnected pieces.
- Handle as a tiny fin, tab, or shard instead of a loop.
- Handle attached only at the rim edge or at one point.
- Handle crossing through the cup cavity or cutting into the interior wall.
- Multiple handles unless explicitly requested.
- Lid generated when the prompt did not ask for one.
## Validation targets
After generation, inspect or reason about:
- Opening is on top and remains open.
- Interior cavity exists and is connected to the opening.
- Bottom is closed and has nonzero thickness.
- Rim is continuous.
- If a handle exists, exactly one main handle is present.
- Handle has two attachment regions on the same side.
- Handle has sufficient clearance from the cup wall.
- Handle does not appear as a broken fragment or a separate brace.
- The model is a single connected solid unless a lid or travel-mug assembly is
explicitly requested.