Jump to content

Polyline Interior Vertices


Malinal

Recommended Posts

Hello,

 

I'm interested in listing the coordinates for the vertices of 2d features via python/vs. However, if I clip a hole out of the middle of the shape, I don't see any way to interact with the interior vertices of the resulting polylines. GetVertNum and the Object Info Palette both only list the vertices on the outside ring of the polyline. Is there something I'm missing here?

 

I've attached an example, where VW displays 5 vertices instead of the desired 9.

 

Thanks!

InteriorVertices.JPG

Link to comment

As usual, @Pat Stanfordbeat me to the punch 😉

 

Check out this example for reference.

PROCEDURE xxx;
VAR
	H, H1 :Handle;
	I :Integer;
	B :Boolean;

BEGIN
      H := FSActLayer;			{ H is a handle to a Polyline }

      B := GetNumHoles(H, I);		{ I has the # of holes in the Polyline; and B is TRUE if (H<>nil) - Not very useful. }
	
      while (I > 0) do begin		{ loop through the holes }
            B := GetHole(H, I, H1);	{ H1 now has a handle to one of the hole objects }
            I := I - 1;
      end;		{ while }
	
      SysBeep;
END;
Run(xxx);

 

Raymond

Edited by MullinRJ
  • Like 1
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...