Closed zoro-1215 closed 1 year ago
Suppose you specify -wp <x> <y> <z> <d>
. You can define a vector n=(x,y,z). This will restrict the Voronoi computation to domain of vectors r where r.n < d, where the dot is the scalar product.
The key point is that the length of n matters. The equation above does not assume that the length of n is 1, and the plane position will vary with the length.
If you definitely want the plane to be displaced by x4, then you should normalize the vector beforehand, e.g. by using -wp -0.707106781186548 0 -0.707106781186548 x4
.
Suppose you specify
-wp <x> <y> <z> <d>
. You can define a vector n=(x,y,z). This will restrict the Voronoi computation to domain of vectors r where r.n < d, where the dot is the scalar product.The key point is that the length of n matters. The equation above does not assume that the length of n is 1, and the plane position will vary with the length.
If you definitely want the plane to be displaced by x4, then you should normalize the vector beforehand, e.g. by using
-wp -0.707106781186548 0 -0.707106781186548 x4
.
it works, thank you very much!
another question: there is a insert box in our hopper(see below figure),
is there a solution to add insert box wall using command-line utility?
Unfortunately, the case that you describe is more complicated, because it means that your domain is non-convex. There is no standard option to handle this.
Usually Voronoi cells are convex, and the code takes advantage of this for computational efficiency. If you work in a convex domain, then the Voronoi cells will all be convex, but if you have a non-convex domain it is possible for the Voronoi cells to be non-convex also, which the code does not handle. This could happen at the corners of the interior box.
One solution could be to break up your domain into several convex parts and analyze each separately.
when i use option "-wp " for plane wall, the result show that the normal vector (-1, 0, -1) is right but the displacement x4 (the distance from the point of origin to plane here i used) is wrong. i want to know how to compute the displacement x4?