DevWang
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by DevWang
-
-
I want to obtain the surface type and its geometry, but when use AskForGeometry funtion, the code break.
Here is the code:
GeometryMask geomMask(true);
geomMask.SetSurfaces(true);
auto spManager = GetSelectionManager();
IGeometrySPtr pGeometry;
spManager->AskForGeometry(L"Select Surfaces", geomMask, pGeometry); // crash here
if (pGeometry)
{
int entityId = pGeometry->GetEntityID();
}
How to use surf_header to get surface type in chook?
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
I find the struct surf_hear s and s.type mean surface type, Does anyone knows how to use this variable?
Is it possible to get the value of s.type to signify Plane, Cylinder, Cone, torus, Sphere, BSurface...?