How to get surface which is bounded curve from non planar surface?

How to get surface which is bounded curve from non planar surface?

Anonymous
Not applicable
531 Views
2 Replies
Message 1 of 3

How to get surface which is bounded curve from non planar surface?

Anonymous
Not applicable

Hi,

 

AcDbSurface::createFrom() works with planar curve. Is there a workaround to create a surface by non planar curve? I attached a dwg file with non planar surface and curve onto it. How to get a surface which is bounded by this curve?

 

Bayar

0 Likes
532 Views
2 Replies
Replies (2)
Message 2 of 3

tbrammer
Advisor
Advisor

You could try a modification of the solution I posted here.

I tried it with your DWG but got an modelling error.

It might work if you modify the code. Currently it uses only curves, that are projected to the surface and leaves the array toolIds empty.

If you pass your curve in toolIds it might work, because it already lies within the surface. But I haven't tried yet.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi tbrammer,

 

This post is also relative with trimming surfaces. 'AcDbSurface::trimSurface(..., const AcGePoint3d& pickPoint, ...)' is good method for my goal. But I have a difficulty with properly programmaticaly defining the 'pickPoint' for outer or inner trimming Smiley LOL .

 

Now I try to find a workaround for trimming surface through 'AcDbSurface::booleanSubtract()' method. So I try to get a surfaces which bounded by curves.

 

Bayar

0 Likes