Search found 55 matches

by Mike Zubovic
Fri Feb 06, 2026 12:27 am
Forum: DG Kernel discussions
Topic: Id field for an entity
Replies: 1
Views: 17868

Re: Id field for an entity

Hello You could use entity > IObject_DG > GetHash(), which would produce a unique 32 bit integer. But the hash has lifetime of the application and the same entity loaded in different apps simultaneously would have different values. A reliable way would have a data structure which contains the entity...
by Mike Zubovic
Wed Jan 21, 2026 7:06 pm
Forum: DG Kernel discussions
Topic: Trimmed Surface
Replies: 1
Views: 27546

Re: Trimmed Surface

Not really. This is implemented in the BRep face structure. Surfaces represent the mathematics (equations) which define its geometry. Trimming is done with wires after the surface has been wrapped into a face.

Regards
by Mike Zubovic
Fri Jan 16, 2026 1:51 am
Forum: DG Kernel discussions
Topic: Building a face from a circle
Replies: 2
Views: 38995

Re: Building a face from a circle

Another way is via IBRepBuilder_DG. Search samples for IBRepBuilder_DG to find a way to get it. IBRepEdge_DG IBRepBuilder_DG.CreateEdge4(ICircle_DG circle) > IBRepWire_DG IBRepBuilder_DG.CreateWire() > IBRepWire_DG.AddEdge(IBRepEdge_DG edge) IBRepFace_DG IBRepBuilder_DG.CreateFace7(IBRepWire_DG wire)
by Mike Zubovic
Thu Jan 15, 2026 12:38 am
Forum: DG Kernel discussions
Topic: Building a face from a circle
Replies: 2
Views: 38995

Re: Building a face from a circle

There are many ways for doing this. The minimum code way is using IStdShape_DG.Disk(). It will create a disk in the xy palne, which can be moved around. I have hacked PatchForm_Load() of the installed C# Patch sample to check: //Before m_iEntity = iStdShape.Cylinder(m_baseRadius, m_topRadius, m_heig...
by Mike Zubovic
Tue Dec 09, 2025 10:33 pm
Forum: DG Kernel discussions
Topic: Trimming an STL model
Replies: 1
Views: 66582

Re: Trimming an STL model

Certainly. There are few options. In the current v7.4 you can use planar clipping demoed in the Planar Ops sample. You could also clip by another surface defined interactively. It can be a cylindrical, spherical, etc. or like extruded prism defined using overlays with mouse clicks. Or you could buil...
by Mike Zubovic
Thu Nov 27, 2025 3:13 am
Forum: DG Kernel discussions
Topic: brep export
Replies: 1
Views: 64193

Re: brep export

Hello Augustin Not right now, but it is high in priorities. We will consider your question as a vote. .brep is the only format we support, apart from .mdg, which can handle both parametric and mesh objects. Currently objects with other than BRep geometry are skipped during .brep export. Thank you fo...
by Mike Zubovic
Thu Sep 11, 2025 6:56 am
Forum: DG Kernel discussions
Topic: Cover a 4 sided hole
Replies: 1
Views: 95351

Re: Cover a 4 sided hole

Hi Jason.
It should work if you just delete the wire.

It worked in my quick test where I added
iFace.RemoveWire(iWire);
as the last line in FaceForm.AddInnerWire() of C# Face

Regards
by Mike Zubovic
Mon Aug 11, 2025 10:24 pm
Forum: DG Kernel discussions
Topic: Overlay mode context menu
Replies: 2
Views: 214615

Re: Overlay mode context menu

We have fixed this in today's 7.3.5649 update.

The bug was only in DGKCn6. Other controls were OK.

V7.3 has no interface difference with 7.2, so upgrading is a no brainer. But still, let us know if you need a fix in 7.2 as well.

Regards
by Mike Zubovic
Mon Aug 04, 2025 3:11 am
Forum: DG Kernel discussions
Topic: Overlay mode context menu
Replies: 2
Views: 214615

Re: Overlay mode context menu

Sorry about the late reply.
We are looking into it.
Thanks for reporting
by Mike Zubovic
Thu Jul 31, 2025 7:29 pm
Forum: DG Kernel discussions
Topic: Mutiple Object Selection
Replies: 1
Views: 116956

Re: Mutiple Object Selection

We have posted a fix in update 7.3.5638.
Thanks for reporting