Question about modifying vertex in a given geometry using python API
Posted: Thu Jul 08, 2021 8:02 am
Dear STKO support team,
I would like to ask a question utilizing python API in STKO for modifying a given geometry.
Attached is a figure illustrating what I want to achieve and
here is the description on it.
What I would like to do is that
Add a new point (red or blue) and replace/change the vertex 1 with red or blue point.
Or, if this works, this way would be better. I want to move vertex 1 to red or blue point within the current geometry.
This means that I want to change the slope angle of the given geometry.
For instance, vertex 1 (current geometry) corresponds to slope angle of 30 Degrees.
Red point is for slope angle of 40 Degrees and blue point is for the angle of 20 Degrees)
I noticed that this can be done by using PyMpc in STKO.
When referring to https://asdeasoft.net/stko-wiki/page5.html#sec18,
I could see the example creating a new element,
but I could not find any helpful comment to move the vertex and merge it with the current/given geometry
In addition, I want to change the height of the geometry from 15m to 30m,
meaning that all the points in the right side of vertex 1 need to move upward.
If there is more steps to change the height compared to modifying the slope angle (the above question),
please add more comments to this question, too.
Best,
Youngkyu
I would like to ask a question utilizing python API in STKO for modifying a given geometry.
Attached is a figure illustrating what I want to achieve and
here is the description on it.
What I would like to do is that
Add a new point (red or blue) and replace/change the vertex 1 with red or blue point.
Or, if this works, this way would be better. I want to move vertex 1 to red or blue point within the current geometry.
This means that I want to change the slope angle of the given geometry.
For instance, vertex 1 (current geometry) corresponds to slope angle of 30 Degrees.
Red point is for slope angle of 40 Degrees and blue point is for the angle of 20 Degrees)
I noticed that this can be done by using PyMpc in STKO.
When referring to https://asdeasoft.net/stko-wiki/page5.html#sec18,
I could see the example creating a new element,
but I could not find any helpful comment to move the vertex and merge it with the current/given geometry
In addition, I want to change the height of the geometry from 15m to 30m,
meaning that all the points in the right side of vertex 1 need to move upward.
If there is more steps to change the height compared to modifying the slope angle (the above question),
please add more comments to this question, too.
Best,
Youngkyu