AnyCAD.Net Graphics ComponentUser Manual(R2014UR1)2014.5Contents1.Overview (4)1.1.Capabilities (4)1.1.1.Modeling (4)1.1.2.Data exchange (4)1.1.3.Visualization (5)2.Get Start (6)2.1.Add assembly DLLs (6)2.2.Add the visualization control (6)3.Modeling (7)3.1.Modeling (7)3.2.Visualization geometry (7)3.3.Explore the TopoShape (8)3.4.Get Common Geometry Property (8)3.5.Curve information (8)3.6.Surface information (8)3.7.Face triangulation (9)4.Visualization (11)4.1.View settings (11)4.1.1.Background color (11)4.1.2.Show/Hide drawing grid (11)4.1.3.Set the camera view (11)4.1.4.Set Display Mode (12)4.1.5.Set Pick Mode (12)4.2.Scene Management (13)4.2.1.Visualize TopoShape Geometry (13)4.2.2.Create Group Node (13)4.2.3.Set Node Style (13)4.2.4.Query selected geometry (14)4.3.Point Conversion (14)4.3.1.World point to screen point (3D->2D) (14)4.3.2.Screen point to world point (2D – 3D) (14)5.Data Exchange (16)6.Reference (17)1.OverviewAnyCAD .Net Graphics Component is the professional graphics SDK for .Net developers, which can help you create 3D applications rapidly. This rapid graphics framework is focusing on 3d modeling, visualization and data exchange.Our goal is to help our customers to make great 3D applications. If you have any issues, please contact us:support@1.1.Capabilities1.1.1.ModelingFeatures of 3d modeling:Primitive geometry modeling for point, line, polyline, spline, arc, circle, sphere, box, cylinder, cone, surface from points etc…Compound: wire, shell, solid, compound.Modeling methods for extrude, sweep, loft, revole, chamfer, fillet, projection, rotate, move, scale, etc…Boolean operation for union, cut, common.1.1.2.Data exchangeThe standard AnyCAD .Net Graphics Component supports the following STEP,IGES,STL,DXF formats.STEPSupport import and export. You can get the “tree”structure of STEP file with shapenames.IGESSupport import and export.STLSupport import and export. You can control the triangulation precision when exporting.DXF (beta)Support import DXF.1.1.3.VisualizationAnyCAD .Net Graphics Component contains the visualization control for WinForm and WPF, which can help you to add the 3D control to you Form easily.Features of visualization:Default Camera operationZ oom in/out, fit window, rotation, pan… and no coding required.Selection managementPick by mouse.Add to object to selection/Clear selection set.Query selected node and geometry, including sub Face/Edge/Vertex.Set selection filter for node, group, face, edge, vertex…Scene node managementAdd, delete, find by id.Create node group.Render StyleCustomize the face, edge, vertex styles, including color, line width, point size, and facematerials.Display modeWireframe, shading, shading with edge…Gradient background color settingsPrint current view to PDFExport current view to images, such as jpg/png.2.Get Start2.1.Add assembly DLLsYou need the following two assembly dlls to your project: .dll.dll2.2.Add the visualization control Please reference the sample code of AnyCAD.Basic project.Now, you can run your application and enjoy the 3D world.3.Modeling3.1.ModelingThe modeling APIs is implemented by class BrepTools which returns the TopoShape Object. Please reference the AnyCAD .Net online documentation for more modeling APIs.You can access the global BrepTools instance by GlobalInstance.BrepTools.3.2.Visualization geometry3.3.Explore the TopoShapeTopoExplor is used to explore the sub shapes of a TopoShape, such as vertex, edge, face, shell, solid.3.4.Get Common Geometry PropertyTopoShapeProperty is used to get the geometry information:Edge lengthSurface AreaSolid VolumeCenter of the shape mass3.5.Curve informationGeomeCurve is used to get the curve parameters, and use the parameter to get the point and derivative data.3.6.Surface informationGeomeSurface is used to get the face uv parameters, and use the parameters to get the point, normal and derivative data.3.7.Face triangulationYou can triangulate the Face to meshes via FaceTriangulation API, and visualization the mesh,4.Visualization4.1.View settingsThere are many settings can help you to make your 3D application looks different.The related APIs are RenderWindow3d and View3d, you can access the View3d instance via the property of RenderWindow3d::View3d.4.1.1.Background color4.1.2.Show/Hide drawing grid4.1.3.Set the camera view4.1.4.Set Display Mode4.1.5.Set Pick ModeYou can set to pick the whole object, then you need to set RF_SceneNode|RF_Edge:RF_Face; You can also set to pick the a group of objects (GroupSceneNode), you need to set RF_ GroupSceneNode |RF_Edge:RF_Face.4.2.Scene Management4.2.1.Visualize TopoShape Geometry4.2.2.Create Group NodeYou can create a group of node to set the visible/style/selection…4.2.3.Set Node StyleYou canset the face style, line style and vertex style for a SceneNode/GroupSceneNode,Set an Id/name4.2.4.Query selected geometryAfter pressing the mouse button, you can use QuerySelectedElementContext to check selectedYou can use the node id to find other data in your database.4.3.Point Conversion4.3.1.World point to screen point (3D->2D)Using View3d::WorldPoint2ScreenPoint you can convert the 3D world point to screen 2D point4.3.2.Screen point to world point (2D – 3D)You can’t convert screen 2d point to 3d world point directly, but the SDK provides you function toThe RenderWindow3d control provides the function to compute the 3D point on the working5.Data ExchangeWe provide two samples for the data exchange model, you get the source code by the links: StpViewerdxfViewer6.Reference●Official web site: ●Online API document: /help/AGP2014/●WinForm and WPF Sample codes: https:///anycad/anycadnetsdkpro。