This method works, but it works very slowly. I think one of the problems might be the \'eval\' statements in the add_by method.
How can I calculate the arc between two circles? The arc must be tangent to the two points on the circles.
Given a set of selected faces (triangular only) from single mesh, how can we detect following: a) edge loops that selected faces create.
For a polygon defined as a sequence of (x,y) points,开发者_高级运维 how can I detect whether it is complex or not?A complex polygon has intersections with itself, as shown:
There 开发者_Go百科are many good packages for calculating the intersection of polygons. I have found the GPC library useful.
I have a question connected to this code: t = -20:0.1:20; plot3(zeros(size(t)),t,-t.^2); grid on hold on
I\'ve been using one of the older implicit surface algo开发者_开发技巧rithms, due to Bloomenthal, as found here, basically the tetrahedral-based algorithm.This works fairly well, but has a shortcoming
I have a simple polygon (convex or concave, but no holes) that I need to开发者_如何学C slice into parts with a line segment. I\'m not sure how to actually determine how many polygons result after the
I have a convex polygon P1 of N points. This polygon could be any shape or proportion (as long as it is still convex).
Greetings, I would like to detect if a segment only \'touches\' a polygon or cross it. The Figure explains my doubt. How to know the difference between cases A and B?