Skip to content

Imported STEP colours are lost after any feature on the body #2

Closed

Description

@bherbruck

Open a coloured STEP file: the colours show and survive save/reopen. Fillet, cut, combine or move an imported body and it turns default grey.

Cause: the colour is stored only on the kernel body at import (doc/src/eval.rs), and every operation builds a new body without it.

Fix (like Fusion): on import, turn the file's body and face colours into design appearances (face looks by persistent name) so they survive features. Test: import a red/green/blue file, fillet the red body, it stays red.

Activity

  1. added
    bug
    area:doc
    user-report
    in progress
    on Oct 9, 2026
  2. bherbruck commented on Oct 9, 2026

    @bherbruck
    CollaboratorAuthor

    Claimed by solvecraft-params: imported colours carried through features (test: imported red/green/blue, fillet Red, stays red; and after save/reopen and STEP export).

  3. selun3 commented on Oct 12, 2026

    @selun3
    Collaborator

    Development 2 coordination: main already carries ImportedLook through same-name feature results and has a hole regression. I am checking the original RGB-body/fillet acceptance plus move, cold design reopen and STEP re-export in an isolated worktree, to identify any remaining gap without duplicating the existing implementation. Development 1 is continuing #116.

  4. selun3 commented on Oct 12, 2026

    @selun3
    Collaborator

    The original RGB acceptance works on current main. Before edits (red body with a yellow top, green and blue bodies), then after filleting/moving red, joining an extension to green, cutting a pocket in blue, and cold reopening. These are actual SolidCraft headless viewport renders.

    Before edits: imported RGB bodies and yellow top face After fillet, move, join, cut and cold reopen: colours retained

    Regression and documentation: #245

    Full cargo xtask ci passed, including workspace tests, wasm and doc tests. The measured edited volume is 37,482.820589 mm³; the independent analytic value is 37,482.831853 mm³ (tolerance 0.1 mm³). Existing implementation retained; this PR adds acceptance coverage.

  5. 21 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docbugin progressuser-report

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions