Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What´s the difference between Vertices and Vertice (API)?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
joantopo
444 Views, 2 Replies

What´s the difference between Vertices and Vertice (API)?

Hi.

I have this:

   using (Transaction trans = db.TransactionManager.StartTransaction())
            {

                Autodesk.Civil.DatabaseServices.TinSurface tinSurface = trans.GetObject(surfaceId, OpenMode.ForRead) as Autodesk.Civil.DatabaseServices.TinSurface;

                foreach (TinSurfaceVertex vertice in tinSurface.Vertices)
                {
                    Autodesk.AutoCAD.Geometry.Point2d punt = new Autodesk.AutoCAD.Geometry.Point2d(vertice.Location.X, vertice.Location.Y);

                    vertexColeccio.Add(punt);
                }
            
            }

 But foreach vertice in Vertices(TinSurfaceVertexCollection) ,it has also a "Vertice" property. Curiosly,they are various.

I don´t understand what is it "Vertice" .

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
2 REPLIES 2
Message 2 of 3
joantopo
in reply to: joantopo

Solved.

 

"vertices" are vertex that they are around the vertex and conect with it.

 

In documentation API:

"Gets a TinSurfaceVertexCollection which contains all vertices connecting with the vertex object."

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 3 of 3
Partha.Sarkar
in reply to: joantopo

Hi,

 

TinSurfaceVertex -> This class encapsulates a triangle vertex in a TinSurface.

 

TinSurfaceVertexCollection -> This class encapsulates a collection of TinSurfaceVertex objects.

 

Cheers,

 

 



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report