Skip to content

ENH: CAD Models Parser #278

Open

Description

@giovaniceotto

Entering distances/positions in any Rocket simulator is the worst part of the experience...

If we have detailed CAD models of our rockets, why aren't we using them to retrieve such information.

This issue requests CAD file support to define a Rocket class.

Requirements

  1. Support for an open CAD file type, such as STEP.

  2. Retrieval of mass and inertia moments from the file.

  3. Be able to identify common aerodynamic surfaces such as nose cone, fins and tails, and their respective positions and types.

Proposed Milestone

This implementation definitely requires a big leap. Thus, as of right now, v3.0.0 seems to be the soonest that we can bring this feature in.

Activity

  1. added
    Enhancement
    on Nov 5, 2022
  2. added this to the Release v3.0.0 milestone on Nov 5, 2022
  3. changed the title [-]CAD Models Parser[/-] [+]ENH: CAD Models Parser[/+] on Oct 11, 2024
  4. ting-hong-shieh commented on Aug 14, 2026

    @ting-hong-shieh

    I suggest narrowing the first CAD milestone to physical properties from an explicitly annotated STEP solid. Reliable automatic recognition of arbitrary nose cones, fins, tails, and assemblies is a separate research problem.

    Proposed v1

    • optional CAD backend, not a required RocketPy dependency;
    • read one STEP solid or a user-selected solid from an assembly;
    • require the caller to provide units and material density;
    • compute volume, mass, center of mass, and inertia in a documented coordinate frame; and
    • use a sidecar file for component role, reference axis, origin, and any RocketPy mapping metadata.

    The existing CadQuery validation work is useful evidence, but the RFC still needs a maintainer decision on the optional backend, OpenCascade/CadQuery wheel support for RocketPy's platforms, and how missing native dependencies are reported.

    Acceptance should use small redistributable STEP fixtures with independently known values. Tests should cover volume, mass, center of mass, inertia, unit conversion, multiple-solid selection, and clear failures for missing density, units, or sidecar metadata. The test tolerance should reflect the CAD kernel's tessellation/solid calculations and be recorded per fixture.

    A second milestone could map annotated solids to RocketPy components. Heuristic component recognition should remain opt-in and experimental until there is a representative dataset with expected labels. If this boundary is acceptable, I can turn it into a backend protocol and fixture specification before adding a heavy optional dependency.

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

    Enhancement

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions