make a edge from a curve based on the start and end parameter
make a edge from a curve based on the start and end parameter
(OP)
Hi all
Does anyone know which command should I use to make an edge on the curve between parameters p1 (start) and p2 (end), using OpenNX API? I want to add several trimmed edges to form a polygon.
Many Thanks!
Does anyone know which command should I use to make an edge on the curve between parameters p1 (start) and p2 (end), using OpenNX API? I want to add several trimmed edges to form a polygon.
Many Thanks!





RE: make a edge from a curve based on the start and end parameter
Thanks!
RE: make a edge from a curve based on the start and end parameter
RE: make a edge from a curve based on the start and end parameter
Do you want to create a planar sheet body polygon? If so, create the curves to form the perimeter of the polygon and extrude them with a zero thickness.
www.nxjournaling.com
RE: make a edge from a curve based on the start and end parameter
Now suppose I have a curve being created. I want to trim the curve by adjusting the curve starting and ending points, parametrically, and do it through c++ programming. For example, I have a line, line1, starts from (0., 0., 0) and ends at (2., 0., 0). If I want to trim it by starting from its 1/4 position and ending at its 3/4 position, (in programming, the favorable function would be: trim(&line, 1/4, 3/4)), the newly created line would be starting from p0(0.25, 0., 0) and ending at (0.75, 0., 0). Is there a function in NX can implement it?
Many thanks!
RE: make a edge from a curve based on the start and end parameter
One approach would be by using the CreatePoint method; it has an option to create a point at a certain percentage along an existing curve's length. You could create 2 of these points at the desired locations then use them to either create a new line or redefine your existing line.
p.s. NX does not support 2D boolean operations.
www.nxjournaling.com
RE: make a edge from a curve based on the start and end parameter
Yes, I think this certainly can do the work. Steps may be:
1. find the desired point on the curve based on the parameter;
2. based on the point create a line or plane as the reference object for trimming;
3. and use the line/plane to trim the curve using UF_create_trim function.
Apart from that, I also found another way to do that, using the 'UF_CURVE_edit_length' function. It can adjust the total length of the curve, and can be used as trim/extend function. Basically, it solves the problem.
Yes, I am aware that the 2D Boolean operations are not viable in NX.
Many thanks!
RE: make a edge from a curve based on the start and end parameter
I use the .NET version of the API, so for me it is the CreatePoint method (one of the overloaded versions), but I'm glad you were able to translate that over to what you needed.
You might even be able to use the point directly in the curve trim operation (it works in interactive NX, anyway).
www.nxjournaling.com
RE: make a edge from a curve based on the start and end parameter
Thanks for you help!