You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a simple code:
` static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
PointD[] pointDs = new PointD[]
{
new PointD(200,1000),
new PointD(3200,1000),
new PointD(3000,600),
new PointD(200,600),
};
PathsD psd = new PathsD();
psd.Add(new PathD(pointDs));
Point startPoint = new Point(0, 0);
double width = 15000;
double height = 1520;
int split = 500;
SvgWriter svg = new(FillRule.NonZero);
for (int i = 0; i < (int)(width / split); i++)
{
var startX = i * split;
var endX = split * i + split;
RectD clipRect = new RectD(Math.Max(0, startX - 2), 0, endX, height);
PathsD paths = Clipper.RectClip(clipRect, psd, 8);
SvgUtils.AddSubject(svg, paths);
}
svg.SaveToFile("rectclip.svg");
}`
I want split a rectangle, I use 'Clipper.RectClip', but a got mutiple rectange splited with closed. How can I splite rectangle without close??
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is a simple code:
` static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
PointD[] pointDs = new PointD[]
{
new PointD(200,1000),
new PointD(3200,1000),
new PointD(3000,600),
new PointD(200,600),
};
PathsD psd = new PathsD();
psd.Add(new PathD(pointDs));
Point startPoint = new Point(0, 0);
double width = 15000;
double height = 1520;
int split = 500;
SvgWriter svg = new(FillRule.NonZero);
}`
I want split a rectangle, I use 'Clipper.RectClip', but a got mutiple rectange splited with closed. How can I splite rectangle without close??
Beta Was this translation helpful? Give feedback.
All reactions