From: Jabiertxo A. C. <jab...@ma...> - 2012-10-20 11:26:39
|
Solved (Find the second handle position (p2) ): Geom_::Curve foo = ... Geom::Point p2 = ?; if (foo) { Geom::CubicBezier const * cubic = dynamic_cast<Geom::CubicBezier const *>( foo ); if ( cubic && (*cubic)[2] != (*cubic)[3] ){ p2 = (*cubic1)[2]; } } Hi to all For find symmetric handle node I use this Where g3 is the end node of previous curve and (*cubic1)[2] his second handle position. (g0-(*penultimateGreenCubic)[2]) + g0 Geom::Point symmhandle =(g3-(*cubic1)[2]) + g3; Hi to all and sorry for repost |