[Frage] Question - Intersection Points node and surfaces/places/breps [Gelöst]

Schlagworte:
  • Intersection
  • Point

Greetings everyone,

I have a question regarding how the “IntersectionPoint” node works. Does is work with planes and surfaces? If not, are there any alternatives?
Also is there a way to reduce the number of points when intersecting with sphere/oval objects, as it would probably generate numerous points, causing the script to crash?

Scenario:
I am trying to make a script that generates a terrain model using slabs using the sloped-surface terrain from allplan. So as a starting point I have a random shaped surface, which then is sliced using planes and finally take out their intersection points. Using the points slabs are created, starting from the highest point, whose shape/area is afterwards substracted from the one below (making the terrain easier to model).
I have tried with different combination of nodes, but the “IntersectionPoints” node seems to only work with linear objects (polyline, lines, spline etc.). I have attached below a basic script just as a reference point.

Bonus question:
I am still at the planning phase of the script and I am not even sure if there are the required tools in VS. What do you think, is it possible?

Thank You in advance,
Dobromir

Anhänge (2)

Typ: text/xml
829-mal heruntergeladen
Größe: 11,69 KiB
Typ: image/jpeg
95-mal heruntergeladen
Größe: 383,51 KiB

Lösung anzeigen Lösung verbergen

Zitiert von: DGeorgiev
I am trying to make a script that generates a terrain model using slabs using the sloped-surface terrain from allplan. So as a starting point I have a random shaped surface, which then is sliced using planes and finally take out their intersection points. Using the points slabs are created, starting from the highest point, whose shape/area is afterwards substracted from the one below (making the terrain easier to model).

The node IntersectionPoints currently only works between curves. It doesn't support to calculate intersections between curves with surfaces or solids.

Although VS has some limitation, but it should still be able to accomplish something similar to what you shown in your target picture, if the terrain isn't very complicated. Please check the screenshot attached for details.

The basic idea is to generate the contours from a terrain surface based on planes. Luckily the node SectionCurves will help you there. After that, you just need to use them generate the base surfaces and then extrude those base surfaces (try Node ExtrudeAlongVector or ShellFromFace) to get the solid you need.

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: image/png
158-mal heruntergeladen
Größe: 191,92 KiB
1 - 10 (13)

IntersectionPoint determines points as the name suggests!
If a NURBS surface is "intersected" with a plane, however, curves are created!

Maybe it is a good idea to start with this paradigm and see how NURBS surfaces and planes can be intersected.

The resulting curves could be the boundary for the terrain layers...

Hallo Dobromir

Es hat zwar nichts mit Visual Scripting zutun, aber eventuell bringt dich das auch weiter.
Das Add-On Baugrube kann mit der Schichtdarstellung ein Gelände darstellen.
Am Schluss dieses Filmes wird das gezeigt.
https://youtu.be/CJ4QsjzQ46g

Gruss Thierry

https://www.cds-bausoftware.ch
https://www.cds-bausoftware.ch/bundle
https://www.cds-ausbildung.ch

Anhänge (2)

Typ: image/jpeg
68-mal heruntergeladen
Größe: 313,00 KiB
Typ: image/jpeg
91-mal heruntergeladen
Größe: 704,87 KiB

Zitiert von: DGeorgiev
I am trying to make a script that generates a terrain model using slabs using the sloped-surface terrain from allplan. So as a starting point I have a random shaped surface, which then is sliced using planes and finally take out their intersection points. Using the points slabs are created, starting from the highest point, whose shape/area is afterwards substracted from the one below (making the terrain easier to model).

The node IntersectionPoints currently only works between curves. It doesn't support to calculate intersections between curves with surfaces or solids.

Although VS has some limitation, but it should still be able to accomplish something similar to what you shown in your target picture, if the terrain isn't very complicated. Please check the screenshot attached for details.

The basic idea is to generate the contours from a terrain surface based on planes. Luckily the node SectionCurves will help you there. After that, you just need to use them generate the base surfaces and then extrude those base surfaces (try Node ExtrudeAlongVector or ShellFromFace) to get the solid you need.

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: image/png
158-mal heruntergeladen
Größe: 191,92 KiB

Many thanks to everyone for your replies as they were of major help.

Although VS has some limitation, but it should still be able to accomplish something similar to what you shown in your target picture, if the terrain isn't very complicated. Please check the screenshot attached for details.

The basic idea is to generate the contours from a terrain surface based on planes. Luckily the node SectionCurves will help you there. After that, you just need to use them generate the base surfaces and then extrude those base surfaces (try Node ExtrudeAlongVector or ShellFromFace) to get the solid you need.

That is perfect. I think the script may be able to work with even complex terrain if the curves are first polygonised. I will do some testing by adding this as an option to the script.

A visual script that works with volume BReps instead of surfaces can "decompose" any BReps into layers.

Anhänge (2)

Typ: image/png
198-mal heruntergeladen
Größe: 140,55 KiB
Typ: application/zip
759-mal heruntergeladen
Größe: 2,61 KiB

Zitiert von: Nemo
A visual script that works with volume BReps instead of surfaces can "decompose" any BReps into layers.

This method also looks very promising. Could you please also upload a screenshot of the script? I had problems opening the pyp file due to the difference in versions. I used the method, or at least what I understood from the translator, discussed in the linked thread below -

https://campus.allplan.com/forum/topics/topic/topics/visual-scripting/mehrere-tragwerksstuetzen-per-liste-erstellen-structural-framing-nodes/page/2.html

I managed to open the pyp file, but it seems to unable to read the xml file no matter what and unlinking the nodes in the process.

Here it is...

Anhänge (1)

Typ: image/png
208-mal heruntergeladen
Größe: 157,36 KiB

Thank you! Some of the nodes seems to also have been deleted when changing the version. This is what the file looks for me.

Anhänge (1)

Typ: image/jpeg
92-mal heruntergeladen
Größe: 282,02 KiB

For this problem, please contact the hotline!

1 - 10 (13)