Home
Reply
Contributor
zeer
Posts: 10

how to extend edge to boundary of face

I have a situation where frequently after projecting and imprinting a wire onto a face with api_project_wire_to_body, the imprinted edge is just short of the boundary of the face.  The face is usually a nonplanar spline, and the edges are nonlinear curves.  Is there an API function to extend an edge to the boundary of a face?

shortedge2.jpg
Spatial Moderator
ybiyani
Posts: 221

Re: how to extend edge to boundary of face

Hello Zeer,

 

Can you please journal couple of example and upload the test files and scripts? Have you tried extending the edges before the imprint to see if that improves the result?

 

Regards,

Yogesh

Contributor
zeer
Posts: 10

Re: how to extend edge to boundary of face

The edges were extended before the projection, but this did not seem to matter.  I will attach a script and source files

Spatial Moderator
ybiyani
Posts: 221

Re: how to extend edge to boundary of face

Hello Zeer,

 

The api takes project_options which allows you to specify a tolerance - did you get a change to play with that?

 

Regards,

Yogesh

Contributor
zeer
Posts: 10

Re: how to extend edge to boundary of face

Tolerance was default.

Contributor
zeer
Posts: 10

Re: how to extend edge to boundary of face

If you observe how far the wire extends past the edge of the face in the example script, it does not seem likely that the tolerance setting is the issue.

Spatial Moderator
ybiyani
Posts: 221

Re: how to extend edge to boundary of face

Hello Zeer,

 

May be this is an issue with the api...but try this  (define res (bool:project-wire-to-body wire1 sheet1 (bool:proj-options "tolerance" 1) )) . I think this is a large tolerance but it gives the desired result...

Here are the options

 

1) Review the failed cases and try to determine a tolerance that you can safely use in your application
2) Report the failed cases to Support for further review

 

 

Extend the edge after it is imprinted is not easy. One thing to try is to find the closest point from vertex on the edge and create a new edge and then imprint the same...but that involves work..

 

Regards,

Yogesh