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

Bug or not? IfcTrimmedCurve problem #58

Open
GoTryCatch opened this issue Dec 3, 2021 · 0 comments
Open

Bug or not? IfcTrimmedCurve problem #58

GoTryCatch opened this issue Dec 3, 2021 · 0 comments

Comments

@GoTryCatch
Copy link

Hi everyone!
I faced the following problem! May be it is bug?
I draw trimmed curve IFC4 (arc of ellipse from 0 to 15 degree (Math.Pi/12))
Initial data: Ellipse (40x20) in original point (0,0,0).
I counted the desired point on the ellipse and know its coordinates.
Simple code:

var ellipse = new IfcEllipse(new IfcAxis2Placement3D(new IfcCartesianPoint(db, 0, 0, 0), new IfcDirection(db, 0, 0, 1), new IfcDirection(db, 1, 0, 0)), 40, 20);
var trimmedEllipse = new IfcTrimmedCurve(ellipse, new IfcTrimmingSelect(0), new IfcTrimmingSelect(Math.PI/12), true, IfcTrimmingPreference.PARAMETER);

But the result is not correct.. arc does not reach the desired point
Why is this happening?
pic1

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

No branches or pull requests

1 participant