How to create ellipsoid? #183
Replies: 2 comments 1 reply
-
There is indeed an ellipsoid function in OpenCascade: https://dev.opencascade.org/doc/refman/html/class_i_g_e_s_solid___ellipsoid.html To use this you should check if it is part of the javascript library opencascade.js. If not you are out of luck. Else you could try to write a new function to extend the capabilities of Replicad. I tried a similar thing in CascadeStudio but it is not simple. I managed to create adaptations of existing functions, e.g. look at how the sphere function is defined and adaot that to ellipsoid. |
Beta Was this translation helpful? Give feedback.
-
I searched a bit more and found this statement (however I do not know the author of this statement): "Ellipsoid primitive doesn't exist in opencascade. The class for ellipsoids that I referenced earlier is probably not usable for creating new solids (primitives). Using the same approach as FreeCad would require a modification to allow for non-uniform scaling. |
Beta Was this translation helpful? Give feedback.
-
Moved from #182
How to create ellipsoid?
For example, FreeCAD(Which also use OpenCascade) supports ellipsoid that have 3 different sizes.
![20250121021414](https://private-user-images.githubusercontent.com/38523/404960404-f9ef57a3-da43-4fad-8dd0-8257dc816276.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjU3MzQsIm5iZiI6MTczOTI2NTQzNCwicGF0aCI6Ii8zODUyMy80MDQ5NjA0MDQtZjllZjU3YTMtZGE0My00ZmFkLThkZDAtODI1N2RjODE2Mjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA5MTcxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljYTM0NjA5OWU5ZWZhYzA5NDA1ZWM3MDVmODQzNGNiYWE1M2Q3NGM0ZDFhMmIyNjM5MWZlY2IwYjIwYjJiMjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2R1SIaJkf_CHZ7BEaKNtLW2YEJrd6YNZXH1K7lsWI7Q)
Can we have similar thing in replicad?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions