how to make rounded trapezoid vtkPolyData or vtkPoints

hello, i’m trying to get vtkPoints (or vtkPolyData) that make up the rounded trapzoid shape.
like below,

I would like to set the diameter of the rolling circle as a parameter as below.

is there good idea? or code example for this?
thank you

1 Like


I don’t know any VTK classes that can do that in a single shot. Most likely you’ll need to use a vtkPath class ( to define a sequence of instructions to lay out a series of connected straight lines and Bezier curves in order to compose the desired shape.

take care,


1 Like

I think you may have to create 2 types of different functions: one for linear segments, one for circular arcs

1 Like