Jump to content
Developer Wiki and Function Reference Links ×

Crop / mask / hide 2D PIO geometry


Recommended Posts

I've setup a 2d linear Pio that draws insulation layer, with arc and lines,  with a given thickness.

It works fine but it fails in junction for angles that differs from 90 degreese.

Therefore I wish to know if someone knows a method to crop/hide/mask a Pio geometry likewise to the way we use to crop our Viewports or Bitmap images (without using SDK of course).
I've tried to insert in my code a white/colored polygon that hides the backmost geometry, but in joining two PIOs it's unusable.

If it not exist I would have to proceed in  such a way as to check whether the points of each individual arc or line fall within a given perimeter: a job that is not impossible but extremely more complicated.

Thank you in advance for your valuable advice!

2D insulation PIO.jpg.png

Link to comment
On 10/1/2023 at 4:40 AM, alberto72 said:

Therefore I wish to know if someone knows a method to crop/hide/mask a Pio geometry likewise to the way we use to crop our Viewports or Bitmap images (without using SDK of course).

There is not a method to do this, even with the SDK. You have a couple of clip surface commands that could work if your fill is a continuous polyline.

 

An alternative solution would be to draw the insulation using a tile fill or line type that the plug-in scales appropriately. A tile fill would allow you to use separate objects, where you would have to calculate the end miters, while a line type combined with a path-based PIO (as others have mentioned) would make this a fairly easy script.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...