ObjectARX

ObjectARX

Reply
Active Member
zhoutao1130
Posts: 6
Registered: ‎09-03-2012
Message 1 of 4 (262 Views)

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

262 Views, 3 Replies
09-03-2012 03:55 AM
 
ADN Support Specialist
Balaji_Ram
Posts: 715
Registered: ‎03-21-2011
Message 2 of 4 (243 Views)

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

Active Member
zhoutao1130
Posts: 6
Registered: ‎09-03-2012
Message 3 of 4 (212 Views)

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

Board Manager
StephenPreston
Posts: 400
Registered: ‎05-22-2006
Message 4 of 4 (189 Views)

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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.