Anycad (MFC version) Some API introduction

Source: Internet
Author: User

Anycad (MFC version) Some API introduction Auview3dapi class

This class mainly contains the display of the document AUVIEW3D (the MFC Document Program view Class) and the Auwindow3d (Display box in the dialog box).

M_VIEW3D Member objects

Type: Protected anycad::api::view3d
The View3D class can be borrowed to perform many display operations, such as erasing with the Getscenemanager function (code below);

    m_View3d.GetSceneManager().ClearNodes();        //清空3D场景    m_View3d.GetSceneManager().ClearNodes2d();      //清空所有的2D对象    m_View3d.GetRenderer().ClearSelection();        //清空选择集    m_View3d.RequestDraw(1);
Auwindow3d class

dialog box shows the box as a three-dimensional display box.
  

Edgeclassifier class

The boundary of the Toposhape is classified and extracted. Includes three categories: Free edges,shared edges,standalone edges.
  Note: experiments have found that some edges cannot be categorized (that is, they are not extracted with three classes). The boundary of a rectangular boundary is extracted in one experiment, with the result of free edges (3), shared edges (0), standalone edges (0), but with globalinstance: Topoexplor.exploredges (shape) found that all 4 boundaries were extracted.

    EdgeClassifier edgeClassfier;    edgeClassfier.Initialize(shape);                                        //用shape初始化    TopoShapeGroup shareEdgeGroup = edgeClassfier.GetSharedEdges();         //shared edges,个数为0    TopoShapeGroup standaloneEdgeGroup = edgeClassfier.GetStandaloneEdges();//standalone edges,个数为0    TopoShapeGroup freeEdgeGroup = edgeClassfier.GetFreeEdges();            //free edges,个数为3    TopoShapeGroup shareEdgeGroup1 = GlobalInstance::topoExplor.ExplorEdges(shape); //所有边界,个数为4

The results of multiple experiments were 1 less than the actual number of the three types of boundary bars.
  

Globalinstance class

Gets the global instance, which contains a number of static member objects that allow the corresponding class operations to be unified by these member objects.

Breptools Member objects

Type: Static Breptools
The object can be used for boundary modeling and other operations.

Topoexplor Member objects

Type: Static Topoexplor
The Topoexplor class can be borrowed to detect the sub-types (points, lines, faces) of the Toposhape in the program.
 

Sharededgeshape class

Operates on a common boundary, such as the parent plane of the boundary can be obtained. But no related function is found that involves class sharededgeshape, only a function with a return value of sharededgeshapelist is found in the Holeexplor class.
 

Topodataexchangeiges class

This class can read the IGEs format. The type of model read in is Topo_compound.
 

Topodataexchangestep class

This class can be read in the step format. The type of model read in is Topo_solid.
 

Topodataexchangestl class

This class can read the STL format. The type of the model to be read is Topo_shell, and all faces will be converted to triangular patches (such as a rectangular polygon will be converted to two triangular patches, the model will find a boundary to divide the rectangular polygon into two triangular faces).
 

Topoexplor class

This class can detect toposhape subtypes (points, lines, polygons).
  

Toposhape class

You can perform certain operations on the model to obtain the model point and line polygon features.

Toposhapeconvert class

You can perform certain operations on the model to obtain the model point and line polygon features.

Toposhapegroup class

A group of Topology objects. Sub-type detection of topological objects allows you to obtain a group of topological objects (which stores the acquired subtypes), which can then be manipulated by subtypes.
  

Toposhapeproperty class

Gets the geometry properties of the Toposhape.

    void    SetShape (const TopoShape &shape)           //设置需要计算的TopoShape    Real    EdgeLength () const    Real    SurfaceArea () const    Real    SolidVolume () const    Vector3     CenterOfMass ()

Anycad (MFC version) Some API introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.