Skip to content

Official Codebase of 3DCodeVerse

Python
12.7 KB
Raw Blame
name: articulated
version: 1
pass_threshold: 0.7
extra_instructions: 'POSE tiles (the POSE SHEET image and any tile whose label starts with ''pose_'' or names a
  joint@value) show the SAME object with joints moved by the harness (forward kinematics from the authored URDF);
  ''rest'' is the rest pose, ''<joint>@upper'' / ''@lower'' / ''@mid'' the joint at that limit or midpoint.  Compare
  each posed tile with the rest tile of the SAME column: what moved, which way, by how much.  A door that swings
  through its frame, a drawer that slides sideways or up, a lid that rotates about the wrong edge, a hinge placed
  in mid-air, or a pose identical to rest are articulation defects even when the rest pose looks perfect.  Judge
  static criteria from the rest-pose montage; use the joint table (axis, pivot, limits) in the plan digest / context.  Links
  are named in the plan digest; use link and joint names as targets.  CALIBRATION: 0.9+ = photographs of the object
  in use (door open on its hinge edge, drawer out on its rails, clearances visible, crisp parts); 0.5 = joints move
  but one moves wrongly or the object is a primitive stack; 0.2 = nothing moves / parts explode when posed / wrong
  object.  The DEFECT CHECKLIST is binary and literal.  REFINEMENT KINDS — the countable
  unit of geometry_detail: (1) bevel / chamfer / fillet; (2) taper or draft; (3) curve or compound surface where
  a primitive would be flat; (4) moulding or profile; (5) cut-out, hole, slot or notch; (6) visible wall thickness
  or hollow section; (7) surface relief (flutes, ribs, grooves, panelling); (8) separately modelled hardware
  (hinge leaf, knuckle, runner, knob, catch, screw, bracket).  Colour and material are not refinement kinds.
  DETAIL AND SIZE — geometry_detail is scored against the object BUILT: a 15-link mechanism with modelled hinges
  must score higher here than a clean 4-link box-stack of the same subject, even when the box-stack has fewer
  defects; those defects belong to structure_plausibility, assembly_fit and craftsmanship.'
criteria:
- id: intent_fidelity
  weight: 0.16
  floor: 0.3
  title: Intent fidelity
  description: 'Is this the object the brief asked for — category, named attributes, and the named moving parts
    (doors, drawers, lid, arm links)?

    '
  anchors:
    '1.0': Right category; every named attribute and every named moving part is present.
    '0.7': Right category; one attribute or moving part is weak or generic.
    '0.4': A named attribute or moving part is missing or clearly wrong.
    '0.1': Wrong category or unrecognisable.
- id: structure_plausibility
  weight: 0.14
  floor: 0.25
  title: Structural plausibility
  description: 'In the rest pose, is the assembly coherent — links attached where they should be, nothing floating,
    the object stands and would function?

    '
  anchors:
    '1.0': Every link is where a real example has it and visibly supported.
    '0.7': One link slightly misplaced; nothing floats.
    '0.4': One link visibly floats or is clearly misplaced.
    '0.1': Several links float or the assembly is implausible.
- id: articulation_plausibility
  weight: 0.18
  floor: 0.3
  title: Articulation plausibility
  description: 'In the pose sheet, does each joint move the way the real mechanism moves — the right TYPE of motion
    (swing vs slide), the right direction, and a believable amount?  Each joint must move the way the real
    mechanism moves and the plan''s joint table states (a drawer slides along its depth, a door swings about its
    hinge edge, a lid about the edge it is hinged on, an arm link about its pivot).

    '
  anchors:
    '1.0': Every joint moves like the real mechanism in the posed tiles (door swings open about its hinge edge,
      drawer slides straight out of its opening, lid lifts up); posed tiles look like photographs of the object
      in use.
    '0.7': All joints move the right way; one moves a little too far / too little, or a clearance looks tight.
    '0.4': One joint moves the wrong way (slides instead of swings, opens into the body, drawer moves sideways or
      up) or a posed tile is identical to rest although the joint has range.
    '0.1': Joints do nothing visible, move the wrong links, or the object falls apart when posed.
- id: joint_placement_and_range
  weight: 0.12
  title: Joint placement and range
  description: 'Are the pivots/axes placed where the physical hinge or rail is (the hinge edge of a door, the rail
    of a drawer, the knuckle of an arm), and are the limits sane (no self-penetration at the extremes, no over-rotation
    through the frame)?  Use the joint table (axis, pivot, limits) together with the posed views.

    '
  anchors:
    '1.0': Every pivot sits on the real hinge/rail line (the door's edge stays against the carcass while open; the
      drawer box stays inside its opening); extremes are collision-free and natural.
    '0.7': A pivot is slightly off its edge (a few mm gap appears when open) or a limit is a bit generous, without
      visible clipping.
    '0.4': A pivot is clearly off (door rotates about its centre or detaches from the frame, drawer pivots), or
      an extreme pose clips through the body.
    '0.1': Pivots in mid-air, joints on the wrong links, or poses that explode the object.
- id: geometry_detail
  weight: 0.12
  title: Geometry detail
  description: 'How much SHAPE was actually modelled, mechanism included?  Count REFINEMENT KINDS (the list is in
    the rubric notes) and how many of the links carry at least one, and count the mechanism parts the real
    object shows that exist here as geometry rather than as an implied joint: visible hinge leaves and knuckles,
    exposed rails, handles and knobs, catches, panel insets, edge thickness; concealed hardware the real object
    hides is not expected.  Geometry only — colour and material variety never raise this criterion.

    '
  anchors:
    '1.0': Five or more refinement kinds visible AND every piece of hardware the real mechanism shows is modelled,
      on at least two thirds of the links; finest features at real hardware scale.
    '0.85': Three or four refinement kinds on at least half the links, and at least one mechanism part modelled
      rather than implied.
    '0.7': Exactly two refinement kinds, or more but concentrated on one hero link; the joint is a bare abutment
      although the real object shows hardware there.
    '0.55': One refinement kind on a couple of links, the rest unmodified primitives.
    '0.4': Primitive stack, at most one token detail on one link.
    '0.25': Every link is an unmodified primitive; only size, position and colour vary.
    '0.1': Blobs or a single lump.
- id: proportions_scale
  weight: 0.1
  title: Proportions and scale
  description: 'Overall dimensions and part ratios are right for the object (measurement table, stated dimensions),
    including moving-part thickness and clearances.

    '
  anchors:
    '1.0': Size and ratios believable; stated dimensions met.
    '0.7': One ratio somewhat off; size within ~20%.
    '0.4': A clearly wrong ratio or size off by >20%.
    '0.1': Absurd proportions or wrong order of magnitude.
- id: assembly_fit
  weight: 0.1
  title: Assembly fit
  description: 'Do joined links meet cleanly in the rest pose (tight joins, no penetration) while leaving the clearance
    a moving part needs?

    '
  anchors:
    '1.0': Clean tight joins; sensible clearances around moving parts.
    '0.7': One small gap or shallow overlap.
    '0.4': A visible gap or penetration, or a moving part fused into its frame.
    '0.1': Multiple gaps/penetrations.
- id: craftsmanship_no_artifacts
  weight: 0.08
  floor: 0.3
  title: Craftsmanship and artefacts
  description: 'No z-fighting, black faces, holes, stretched geometry, stray slivers, or duplicated shells in rest
    or posed views.

    '
  anchors:
    '1.0': No artefact anywhere, including at detail scale in the centre crop and in every posed tile — no crack
      opening at a join when a joint moves, no coplanar flicker, no stray sliver, no coarse facets on a surface
      that should read as curved.
    '0.85': Clean at object scale; one blemish only findable in a crop or in one posed tile.
    '0.7': One minor artefact in one view.
    '0.4': A clearly visible artefact.
    '0.1': Artefacts dominate.
caps:
- id: build_error
  when: gate
  gate: build*
  severity: error
  cap: 0.0
- id: urdf_error
  when: gate
  gate: '*urdf*'
  severity: error
  cap: 0.3
  # URDF does not parse / links unresolved / joint tree invalid
- id: contract_violation
  when: gate
  gate: contract*
  severity: error
  cap: 0.75
  # plan part missing or measured bbox broken beyond tolerance
- id: joint_collision
  when: gate
  gate: '*'
  severity: error
  kinds:
  - collision
  - penetration
  - intersect
  - self_collision
  cap: 0.6
  # a swept pose collides link-vs-link
- id: floating_part
  when: gate
  gate: '*'
  severity: error
  kinds:
  - floating
  - unattached
  - no_contact
  - disconnected
  - unsupported
  - island
  - touches nothing
  cap: 0.6
  # stays on gate "*" (2026-08-30): connectivity reports rest-pose floating and joint_sweep "touches
  # nothing", so unlike the object rubrics no single gate owns this measurement
- id: penetration_error
  when: gate
  gate: '*'
  severity: error
  kinds:
  - penetrat
  - intersect
  - overlap
  cap: 0.7
  measures:
  - interpenetration
  - pose_clips_body
  # stays on gate "*": connectivity can report a rest-pose interpenetration and joint_sweep collides
  # every link pair in every sampled pose, the rest pose included
  # (spatial/joints_sweep.sweep_collisions). The veto therefore needs EVERY gate clean —
  # conservative, and sound for both the rest-pose and the posed checklist claims
- id: missing_must_acceptance
  when: acceptance
  cap: 0.6
  graded: true
  # 0.6 + 0.4 * verified/total must items (2026-08-30, as static_object); pass/fail unchanged
- id: unattached_link
  when: gate
  gate: '*'
  severity: error
  kinds:
  - unattached
  cap: 0.6
  # a link is not physically attached to its parent as its joint type requires
- id: missing_pose_sheet
  when: missing_views
  kinds:
  - articulation_sheet
  - pose_sheet
  - pose_
  cap: 0.5
  # the articulated rubric requires posed views; without them articulation is unjudged
defects:
- id: wrong_object
  text: The renders show a different object category than the brief (or nothing recognisable).
  cap: 0.25
- id: missing_named_part
  text: A link or part the brief/plan names is absent (no handle, no second drawer, no lid).
  penalty: 0.1
  cap: 0.6
- id: floating_part
  text: In the REST pose a link visibly hovers or is detached from its parent (daylight between them; check the
    low view and the geometry montage).
  penalty: 0.1
  cap: 0.6
- id: interpenetration
  text: In the REST pose a link visibly passes through another in a render, or a gate ERROR reports it; few-mm weld overlaps reported as warnings are NOT this defect.
  penalty: 0.08
  cap: 0.7
- id: wrong_proportions
  text: Part ratios or overall size clearly wrong (> 20%) against the brief / measurement table.
  penalty: 0.08
  cap: 0.7
- id: wrong_orientation
  text: The object lies on its back or side, is upside down, or faces away from the front view.
  penalty: 0.1
  cap: 0.5
- id: no_articulation_visible
  text: Posed tiles look identical to the rest tile for a joint that has range (nothing moves).
  penalty: 0.15
  cap: 0.4
- id: wrong_motion_type
  text: 'A joint moves the wrong way: a door slides, a drawer swings or moves sideways/up, a lid drops into the
    body, a link rotates about the wrong axis.'
  penalty: 0.12
  cap: 0.5
- id: pivot_misplaced
  text: A part rotates about its centre or a point in mid-air instead of its hinge edge / rail (a gap opens between
    door and carcass at the hinge side when open).
  penalty: 0.1
  cap: 0.6
- id: pose_clips_body
  text: In a posed tile a moving part passes through the carcass / frame / another link.
  penalty: 0.08
  cap: 0.6
- id: detail_below_part_count
  text: The object has EIGHT or more links but fewer than THREE distinct refinement kinds (the numbered list in the
    rubric notes) are visible across all of them together, and hardware the real mechanism shows is absent at the
    joints. Count kinds, not instances; do not count colour.
  penalty: 0.05
- id: primitive_only
  text: Every part is an unmodified box / cylinder with sharp 90° edges although the real object has handles, shaped
    edges, insets, rails or visible thickness — none of them anywhere.
  penalty: 0.08
- id: untextured_flat
  text: Default grey / magenta placeholder materials are visible, or surfaces are unlit flat fills with no shading response. A uniform but sensible colour (an all-walnut chair, an all-oak cabinet) is NOT this defect.
  penalty: 0.05
  cap: 0.75
- id: holes_or_inverted_faces
  text: Missing faces, see-through walls or black inverted faces are visible.
  penalty: 0.08
  cap: 0.6