public override void Render(SVGElement parent, Material baseMaterial, onRenderCallback cb) { if (_rx != 0 || _ry != 0) { //FIXME: aca tiene que ser un rect rounded vectors_2d = GeometryTools.CreateRoundedRectangle(_x, _y, _width, _height, _rx, _ry, nSegments); } else { vectors_2d = GeometryTools.CreateRectangle(_x, _y, _width, _height); } base.Render(parent, baseMaterial, cb); }
public override void Render(SVGElement parent, Material baseMaterial, onRenderCallback cb) { vectors_2d = GeometryTools.CreateEllipse(_cx, _cy, _rx, _ry, nSegments); base.Render(parent, baseMaterial, cb); }