Menu

How to create a geometry by some points?

Help
sxbug
2018-12-19
2019-07-11
  • sxbug

    sxbug - 2018-12-19

    Hi Sir:

    There are many points in GLSence. Is there a simple way to construct a three-dimensional geometry based on these points?

    Thanks

                           sxbug
    
     
  • Jerson Seling

    Jerson Seling - 2018-12-26

    You want build some like this https://en.wikipedia.org/wiki/Convex_hull ?

     
  • sxbug

    sxbug - 2019-01-14

    Yes. Thank you at first.
    This is what I want, but how to implement this function , I do not know too. I found a PCL base library (points cloud library), only for VC++ , could not find a delphi version. Please help me to achieve this function, thank you.

     
  • sxbug

    sxbug - 2019-01-17

    Thank you very much!

     
  • Jerome.D (BeanzMaster)

    Hi sxbug have you more informations about the algorithm ? I'm suggest using T(GL)MeshObject
    You can take a look in the GLMeshUtils.pas and GLMeshOptimizer.pas. Check also demo in examples branch SceneObjects/SuperEllipsoid

     
  • sxbug

    sxbug - 2019-02-09

    Thanks. I am Tring......

     
  • sxbug

    sxbug - 2019-03-06

    Hi
    I found a PCL open source library, then compile a DLL file(it only for C++) ,so I can call it with delphi, but because my point set is : a cross-section is composed of many points(7000+), but the distance between cross-sections is very far, leading to the failure to obtain better shape, do you have a good way?

    Thank you

     
  • Jerome.D (BeanzMaster)

    Hi sxBug

    try to reduce the distance by a factor.

    Have you the link for the PCL OpenSource, i'll check when i have more time et perhaps i'll can convert it to pascal and glscene.

    Thanks

     
  • sxbug

    sxbug - 2019-03-08

    pcl1.7.1 https://github.com/PointCloudLibrary/pcl/archive/pcl-1.7.1.zip

       The PCL I used is a DLL file compiled by others. I also hope to integrate it into glscense. Thank you for your great work.
    
          Reducing distance is a big problem. There are many points in each section. The positions of points in each section are random and there is no strict correspondence. So how to insert more sections reasonably has not found a good way.
    
     
  • sxbug

    sxbug - 2019-07-09

    Hi
    I found a unit ( fastGEO. http://fastgeo.partow.net) that can be used for convexHull. Can you help me implement this function in Glsence?
    It's about build a mesh like a pipeline from a lot of cross-section points . Thank you.

     
  • Jerson Seling

    Jerson Seling - 2019-07-09

    Current FastGEO Release Version
    The current version of the FastGEO computational geometry library has been set at version 5.0.1(stable). No new major release (aka version increment) will be made until the majority of the following capabilities are implemented within the FastGEO frame-work:

    Rotating Caliper
    Edge constrained Delaunay Triangulation
    Convex hull in 3D
    Additional visualization infrastructure
    -Friday 7th Of January 2005

    3D convex hulls was implemented?

     
  • Jerson Seling

    Jerson Seling - 2019-07-09

    I saw the source, they only have 4 'hull methods'. 3 are 2D and only 1 is 3D, but only show a Bounding Sphere of an array of points. All this methods are bounding something.

    function RectangularHull(const Point: array of TPoint2D):TRectangle;
    function RectangularHull(const Polygon:TPolygon2D):TRectangle;
    function CircularHull(const Polygon:TPolygon2D):TCircle;
    function SphereHull(const Polygon:array of TPoint3D):TSphere; <-only show a bounding sphere

     

    Last edit: Jerson Seling 2019-07-09
  • sxbug

    sxbug - 2019-07-11

    Yes。But I could not find any software better. And Is there any way to show the model fastGEO made in GlSence?

     
  • Jerson Seling

    Jerson Seling - 2019-07-11

    FastGEO dont generate any 3d model. The SphereHull result, is a TSphere, you can represent it with a TGLSphere, only set the position and radius.

    In a real ConvexHull generator, like this (write in JS) https://github.com/mauriciopoppe/quickhull3d a result set made of vertices and faces is returned. Using the T(GL)MeshObject you can show this in GLScene after translate the data.

    The fastGeo author made a demo generating a 2D convez hull:
    https://github.com/ArashPartow/fastgeo/tree/master/FastGEOConvexHull

    But nothing in 3D. :(

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.