Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Jun 8, 2022

This PR fixes #1231 by including non-aerodynamic components in the rocket's bounding box calculations.

I first just deleted the aerodynamic condition in the bounding box calculations, but most parts of the program (including some calculations) need the bounding box or rocket length of only aerodynamic components. Just deleting the aerodynamic condition caused changes in the calculations.

So I ended up splitting the bounding box and rocket length in two variations: only aerodynamic components and all components.

This PR not only fixes #1231, but now the rocket length displayed in the rocket view's top left corner includes all components, not only the length of the aerodynamic components.

Here is a jar file for testing.

SiboVG added 2 commits June 8, 2022 21:17
Some parts of the program need only the bounding box of aerodynamic parts (most parts of the program), but a couple others need the bounding box and length of all components
@hcraigmiller
Copy link
Collaborator

Functions beautifully, no anomalies found as to this issue... but see Issue #1420.

[Windows 11 Pro, Version 21H2, OS Build 22000.675, Windows Feature Experience Pack 1000.22000.675.0]
[Java version "17.0.3.1" 2022-04-22 LTS; Java(TM) SE Runtime Environment (build 17.0.3.1+2-LTS-6)]

@SiboVG SiboVG merged commit 910fd7c into openrocket:unstable Jun 9, 2022
@SiboVG SiboVG deleted the issue-1231 branch June 9, 2022 19:43
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.

"fit" doesn't always work in side view

2 participants