« IFamilyLoadOptions and GEMini | Main | Export 3D View to 2D DWF »

February 15, 2010

Comments

I'd like to suggest an alternative to GPC.

I've recently written my own *freeware* polygon clipping library (originally written in Delphi but I've now also translated it into C++) and it is available from SourceForge:
https://sourceforge.net/projects/polyclipping/

I've compared my library (Clipper) with both GPC and PolyBoolean and in my tests Clipper comprehensively outperforms both these other libraries (see http://www.angusj.com/delphi/clipper.php for more info).

HTHs ...

Dear Angus,

That sounds very interesting indeed! Have you used it in the context of a Revit add-in, or are you planning to do so? Would you like to implement a little sample add-in and tell us more about it?

Cheers, Jeremy.

Hi Jeremy.
No, I haven't used Revit or its add-ins but on a little closer inspection it appears that these add-ins use C#, not C++. Nevertheless it would be a simple task to create a clipper.dll that exported 3 or 4 functions to which a Revit add-in could interface.
A.

Dear Angus,

The Revit API is simply .NET, so you can use any language you please. I work mainly with C#, but other use VB.NET, maanaged C++, and other more exotic choices.

And yes, I agree that a minimal clipper.dll exporting the required functionality would be the easiest and most efficient way to go.

Cheers, Jeremy.

http://polyclipping.svn.sourceforge.net/viewvc/polyclipping/trunk/dll/

:)

Dear Angus,

Thank you. I am looking forward to hearing from anyone who chooses to make use of this in Revit :-)

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource