A program to recognize and reward our most engaged community members
Is there convhull function in Compose?
If not , are there some solution about this function?
Hello Seoksan Kim,
The convhull function is not present in Compose. But there is a ticket VSM - 4208 which is for creating convex hull.
Thanks,
Sijo George
Hi Seoksan Kim,
As COMPOSE has a great feature of communicating between python environment and OML environment. we can utilize this feature to achieve the task when compose OML doesnt support any function.
Scipy.spatial python library has ConvexHull function in it. we can use this to get the Convhull function in OML. You can install the Scipy python library as attached file
I have attached the sample scripts that i created for the same.
steps to run the scripts after installing scipy:
1. save the files in a folder
2. open test.oml in COMPOSE and set the working directory to the folder in step1.
3. Run test.oml
You will get convhull points as variable k.
Hope this helps.
Please let me know if you have any questions.
<?xml version="1.0" encoding="UTF-8"?>
Unable to find an attachment - read this blog
Hello Manoj,
I attached modified .oml and .py file to plot a closed outline graph.
Perfect Seoksan. I edited the python file which i was using and posted in the forum as an example. Good that you modified the script to reduce the lines, plot and made it more elegantly /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
MK