Search found 126 matches

by Prashant Kande
Mon Jul 13, 2020 3:17 am
Forum: General Issues
Topic: Extract geometry from brep file
Replies: 4
Views: 132

Re: Extract geometry from brep file

This change was added to the Friday's update. We have also sorted out a couple of issues in conversion brep to point set. The sample was further simplified a little as well.
Regards
by Prashant Kande
Wed Jul 08, 2020 6:17 am
Forum: General Issues
Topic: Extract geometry from brep file
Replies: 4
Views: 132

Re: Extract geometry from brep file

You are right. It should work. This is an ancient sample. We are looking into reworking it. For now please change the beginning of LoadPointCloud() from private void LoadPointCloud() { // Get extension of the model path to check that it is .csv or .xyz var strModelPath = m_kernCAD.ModelPath; strMode...
by Prashant Kande
Mon Jul 06, 2020 4:48 am
Forum: General Issues
Topic: Extract geometry from brep file
Replies: 4
Views: 132

Re: Extract geometry from brep file

Hi Fergus .brep format loads solids, etc. as bspline brep type. The loaded structures are not aware of what the object represents. It is up to the application to interpret the input. The easiest way would be to store some additional info with your app's document which would identify the objects by i...
by Prashant Kande
Fri Jun 12, 2020 12:17 am
Forum: General Issues
Topic: Wire inside another wire
Replies: 3
Views: 272

Re: Wire inside another wire

Sample the curves using ICurve_DG.GetPointAtRatio(double ratio) at a number of positions (in 0 to 1.0 range). How many? - I guess 10 would be plenty, but it is better to take it larger like 60 and tune in to reduce until you start getting wrong answers.
by Prashant Kande
Mon Jun 08, 2020 12:07 am
Forum: Bug Reports
Topic: Searching documentation
Replies: 2
Views: 1350

Re: Searching documentation

We have made some improvements. It works with an extra step. When searching, say for IEntity_DG please click one of the top results and find a link to the IEntity_DG there.
We are planning to replace the documentation site with something better soon.
Regards
by Prashant Kande
Tue Jun 02, 2020 4:41 am
Forum: General Issues
Topic: Create face from spline curves
Replies: 3
Views: 267

Re: Create face from spline curves

As per your second question, please take a look at IWireArrayToSurfaceBuilder_DG and how it is used in Surfaces sample.
Regards
by Prashant Kande
Mon Jun 01, 2020 12:05 am
Forum: General Issues
Topic: Create face from spline curves
Replies: 3
Views: 267

Re: Create face from spline curves

Hi IvanGr InitFromPoints() is intended for redundant sets of points to approximate. Unfortunately it does not work for creating a periodic smooth curve. Your code with or without the duplicated end would produce closed, but not smooth curve. Use Interpolate*() or Init*() instead. They are designed f...
by Prashant Kande
Thu May 28, 2020 7:44 am
Forum: General Issues
Topic: Wire inside another wire
Replies: 3
Views: 272

Re: Wire inside another wire

Hello eVoodoo Sorry, currently we do not have it on level of wires. I suggest getting all curves from the wires and using ICurve_DG.GetPointLocation() . Via IBRepWire_DG.GetEdge() > IBRepEdge_DG.GetCurve() Think about adding something like WireGetPointLocation(IBRepWire_DG wire, DgPoint point) or Wi...
by Prashant Kande
Thu May 28, 2020 4:48 am
Forum: Bug Reports
Topic: Set current entity does not work
Replies: 2
Views: 256

Re: Set current entity does not work

Hello Guoliang
Thank you for reporting. It was fixed in today's update: Downloads
Regards
by Prashant Kande
Tue May 26, 2020 6:56 am
Forum: General Issues
Topic: Convert 3d point into window coordinate
Replies: 2
Views: 261

Re: Convert 3d point into window coordinate

Hi Bernard
Use IView_DG.ProjectToScreen() for that:
../Help/V6_0/Interface/View/IView_DG.aspx#ProjectToScreen


IView_DG is returned by the GetView() of the control (Cast the retuned interface to IView_DG).

Regards