• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    Active Member
    Posts: 6
    Registered: ‎09-03-2012

    how to create a surface using a set of known points ?

    169 Views, 3 Replies
    09-03-2012 03:55 AM
     
    Please use plain text.
    ADN Support Specialist
    Balaji_Ram
    Posts: 384
    Registered: ‎03-21-2011

    Re: how to create a surface using a set of known points ?

    09-07-2012 05:47 AM in reply to: zhoutao1130

    Hi,

     

    I am assuming that you have enough information on how those points are inter connected.

     

    If so, then you could first create a subDMesh and then convert it to a surface.

     

    To create a SubDMesh from a set of points, you can use the AcDbSubDMesh::setSubDMesh method.

    It expects the vertices and face information in a certain format which is explained in this Devblog post :

    http://adndevblog.typepad.com/autocad/2012/04/working-with-vertices-edges-and-faces-of-a-subdmesh.ht...

     

    After you have created the subDMesh, use the AcDbSubDMesh::convertToSurface method.

     

     

     



    Balaji
    Developer Technical Services
    Autodesk Developer Network

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎09-03-2012

    Re: how to create a surface using a set of known points ?

    09-18-2012 06:45 AM in reply to: Balaji_Ram

    no,it just e a set  of sactter points ,using the points to reconstruct the surface of  3D entity .

    thank you

    Please use plain text.
    ADN Support Specialist
    Posts: 261
    Registered: ‎05-22-2006

    Re: how to create a surface using a set of known points ?

    09-21-2012 02:25 PM in reply to: zhoutao1130

    Here's some code (in .NET) to create a triangulated surface from a set of points in case that helps - http://through-the-interface.typepad.com/through_the_interface/2009/07/triangulating-an-autocad-sub-....

     

    Although it sounds like you may actually want a 'shape extraction' algorithm to detect planes etc. from a  set of points with random scatter. I don't have an algorithm for that at hand.

    Cheers,

    Stephen Preston
    Autodesk Developer Network
    Please use plain text.