Search found 46 matches

by Prashant Kande
Fri Aug 30, 2024 12:19 am
Forum: DG Kernel discussions
Topic: Mesh simplification
Replies: 2
Views: 2891

Re: Mesh simplification

Hello VJay I do not believe we have a built-in functionality for that. I suggest using some other tools. We are more focusing on parametric technologies. Plese get in touch if you really need this in DGK. It would not be a problem to add. You could also implement it yourself using mesh construction ...
by Prashant Kande
Thu Aug 22, 2024 5:48 am
Forum: DG Kernel discussions
Topic: Sweep with a twist
Replies: 1
Views: 2098

Re: Sweep with a twist

Hello Tom Surfaces sample demonstrates building an extrusion of a (x,y) curve in z direction. First, you need a procedure which builds a flat polygonal wire with straight edges at a z = z0 plane. FaceForm.BuildFace() (with a simple modification) shows building a wire like that. Let us suppose it loo...
by Prashant Kande
Wed Aug 21, 2024 5:28 am
Forum: DG Kernel discussions
Topic: Picking a point in a cloud
Replies: 2
Views: 2508

Re: Picking a point in a cloud

Forgot to mention: The point should be global. Ones stored in the cloud have coordinates relative to the local frame of the entity. So, you need to do: IFrame_DG frame = iEntityTheCloud.GetLocation(); PointDg ptGlobal = frame.ToGlobal(pointFromTheGeometry); PairIntDg pairPixels = iView.ProjectToScre...
by Prashant Kande
Mon Aug 19, 2024 4:02 am
Forum: DG Kernel discussions
Topic: Picking a point in a cloud
Replies: 2
Views: 2508

Re: Picking a point in a cloud

Hi Aaron We do not have it currently in the core, but it is easy to implement in an application: Determine the selection rectangle on the screen in pixels, say from mouse down and mouse up events. Loop by all points in the cloud and take its projection to the screen using IView_DG.ProjectToScreen() ...
by Prashant Kande
Thu Aug 15, 2024 12:12 am
Forum: DG Kernel discussions
Topic: Point to plane projection
Replies: 1
Views: 2151

Re: Point to plane projection

Hello Gin The easiest way is to find the appropriate interface in the list . Then search for IPlane_DG in the installed samples. You would find for an example in Face sample: private IUVSurface_DG CreatePlane() { IPlane_DG iPlane = m_gen.Create<IPlane_DG>(); // define the plane //.... IUVSurface_DG ...
by Prashant Kande
Tue Aug 13, 2024 2:33 am
Forum: DG Kernel discussions
Topic: Mouse events (restored)
Replies: 1
Views: 2133

Re: Mouse events (restored)

Hi Steve All events raised by DGK are enumerated in Event_DG The mouse events are raised by its special events Apart from that there are: - Client Draw event raised on each redraws of window - Collision event when there was a collision of registered objects for that - Something was selected in the c...
by Prashant Kande
Thu Aug 08, 2024 3:10 am
Forum: DG Kernel discussions
Topic: Solid axes (restored)
Replies: 1
Views: 2153

Re: Solid axes (restored)

Hello
Have a look at the 'Global Axes Icon' section in Global Axes.
Lines sample shows how it works and the programming.

Cheers
by Prashant Kande
Sun Aug 04, 2024 3:25 am
Forum: DG Kernel discussions
Topic: Finding object in 3D view
Replies: 1
Views: 2052

Re: Finding object in 3D view

Hello Russel This can also be done using Model Explore and DGK's Misc event like demoes in eMotion sample. It seems that you prefer your own implementation. You are creating a tree view node per entity, right? I suggest that you store reference to IEntity_DG in the node. I think it has Tag property ...
by Prashant Kande
Thu Jul 25, 2024 4:34 am
Forum: DG Kernel discussions
Topic: Export via Viewer app
Replies: 1
Views: 2538

Re: Export via Viewer app

Hello Mike It is more of our omission. Historically with the initial rigid licensing the viewer was a free application for native-only mdg and glm. Later we have added loading external formats, but saving was left ignoring exports. It works via the control using nearly any sample like View > DIView ...
by Prashant Kande
Mon Jul 22, 2024 7:24 am
Forum: DG Kernel discussions
Topic: Offsetting a face
Replies: 1
Views: 2201

Re: Offsetting a face

Hi Frank Short answer: Have a look at the ShapeMods sample. It is not so simple, actually. BRep structures are super redundant. If you have curved edges or faces, a lot of things have to stay geometrically in synch: Edges should be inside of faces, vertices inside edges. Different curves for an edge...