Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 2figures beam convert error #191

Merged
merged 2 commits into from
Sep 24, 2021
Merged

Fix 2figures beam convert error #191

merged 2 commits into from
Sep 24, 2021

Conversation

hrntsm
Copy link
Owner

@hrntsm hrntsm commented Sep 24, 2021

大梁の2断面はTaperのみにしていたが、Haunch, Joint も2断面があったためそれに対応した

変更点

  • 2断面の梁の対応が、Taper のみだったが、仕様上は Haunch と Joint があるため、それに対応するようにした。
    • 2断面のHaunchとJointはCenter以外の断面が Start と End のどちらかわからないため、Center の値を使った1断面部材としてBrep化した。

対応するIssue番号

close #190

大梁の2断面はTaperのみにしていたが、Haunch, Joint も2断面があったためそれに対応した
curveList.Add(SteelSections.GetCurve(_sections.StbSecSteel, center, sectionPoints[3], Utils.SectionType.Beam, localAxis));
}

private void TwoFigureCurveList(IReadOnlyList<object> figures, IReadOnlyList<Point3d> sectionPoints, ICollection<Curve> curveList, Vector3d[] localAxis)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method TwoFigureCurveList has 31 lines of code (exceeds 25 allowed). Consider refactoring.

}
}

private void ThreeFigureCurveList(IReadOnlyList<object> figures, IReadOnlyList<Point3d> sectionPoints, ICollection<Curve> curveList, Vector3d[] localAxis)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method ThreeFigureCurveList has 26 lines of code (exceeds 25 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Sep 24, 2021

Code Climate has analyzed commit 3984b51 and detected 0 issues on this pull request.

View more on Code Climate.

@hrntsm hrntsm merged commit bd2b781 into develop Sep 24, 2021
@hrntsm hrntsm deleted the fix/2figure-beam-sec-error branch September 24, 2021 10:25
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.

Error 2 figure Steel beam to Brep
1 participant