Skip to content

Commit

Permalink
[graphics] draw_ellipse for IPE
Browse files Browse the repository at this point in the history
  • Loading branch information
godardma committed Nov 4, 2024
1 parent f34963f commit 03dead1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/graphics/3rd/ipe/codac2_Figure2D_IPE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,12 @@ void Figure2D_IPE::draw_ellipse(const Vector& c, const Vector& ab, double theta,
{
assert(c.size() == 2);
assert(ab.size() == 2);
// Not implemented yet

begin_path(s);
_f_temp_content << scale_length(ab[0]) * cos(theta).mid() << " " << scale_length(ab[0]) * sin(theta).mid() << " "
<< - scale_length(ab[1]) * sin(theta).mid() << " " << scale_length(ab[1]) * cos(theta).mid() << " "
<< scale_x(c[i()]) << " " << scale_y(c[j()]) << " e \n";
_f_temp_content << "</path>";
}

void Figure2D_IPE::draw_tank(const Vector& x, float size, const StyleProperties& s)
Expand Down

0 comments on commit 03dead1

Please sign in to comment.