alberto72 Posted October 1, 2023 Share Posted October 1, 2023 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! Quote Link to comment
Maarten DE Posted October 1, 2023 Share Posted October 1, 2023 Just thinking out loud here, but wouldn't a 2D Path PIO be better in this case? That way you can calculate the angle between each consecutive line segment of the poly. Quote Link to comment
SamIWas Posted October 2, 2023 Share Posted October 2, 2023 Are these two different instances of the PIO being inserted into the document, or one PIO that draws two parts? How are the two sections created with the pattern? How you're creating it will determine how to fix it. Quote Link to comment
JBenghiat Posted October 2, 2023 Share Posted October 2, 2023 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. Quote Link to comment
Recommended Posts
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.