Skip to content

Stop reporting the bounding-box centre as a centre of mass (v1.30.2) - #22

Draft
asbis wants to merge 1 commit into
masterfrom
claude/kind-margulis-7e064f
Draft

asbis wants to merge 1 commit into
masterfrom
claude/kind-margulis-7e064f

Conversation

@asbis

@asbis asbis commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Én commit (f034511): tessellate/viewer/MCP rapporterte sentrum av bounding-boksen som massesenter; nå skilles de, med tester.

Lagret fra en lokal worktree under opprydding 2026-12-04; ikke gjennomgått. Versjonsnumrene i grenene kolliderer (flere hever til 1.30.2/1.31.0), så de må rebases og nummereres om før fletting.

🤖 Generated with Claude Code

Default renders (partStats "bbox", i.e. no material declared) skip OCCT
measurement, and core then filled centerOfMass with the AABB centre.
create_shape and get_render_status printed it as `CoM=`: an L-bracket
showed CoM=(0.00, 0.00, 17.50) against a true (0, -7.5, 10), which misleads
any agent reasoning about tipping or balance.

- core: "bbox" no longer sets centerOfMass. The bbox centre was already on
  every part as boundsCenter, so nothing is lost.
- mcp-server: per-part rows print CoM= only for a measured value, and
  otherwise `bbox centre=(…)` from the bbox min/max. The get_render_status
  description says volume/area/CoM/mass need a material.
- viewer: the parts panel reads boundsCenter for "Bounds center" and only
  says "Center of mass" for a measured one.
- Assembly CoM aggregation is unchanged: it weights by measured volume, so
  the estimate never fed it.
- Test: an L-bracket assembly through the real engine. The default render
  has no CoM= and labels the bbox centre; partStats "full" still reports
  (0, -7.5, 10) per part plus the volume-weighted aggregate.
- Versions: extension, mcp-server and the plugin marketplace move to 1.30.2,
  with a CHANGELOG entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
shapeitup-landing Ready Ready Preview Dec 4, 2026 9:10am UTC

This branch was successfully deployed

1 active deployment
Preview — f0345114 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant