• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

interpolating polylinea 3d

  • Thread starter Thread starter sigma_0
  • Start date Start date

sigma_0

Guest
Good morning, everyone!

It's the first time I write but I've been following you for a long time and you've always been very helpful. Now I have a problem that I just don't twist the solution and ask for your direct help.

I need to fill the tops of an existing 3d polyline, interpolating the tops it currently has. It is essential that polylinea remain whole, not to break it, and it is essential that the share of points, not only their position, is interpolated between the existing ones.

practical example: I have a 3d polyline that creates a closed rectangle of sides 200 m and 20 m. two vertices, at the ends of a long side, are at altitude 0.5 and the other two, at the ends of the other long side, two are at altitude 0.005. I need to have a vertex every 5 m, which on long sides will obviously be on one side all to 0.5 and on the other all to 0.005 m, while on the short side they will have to have intermediate quotas between 0.5 and 0.005 m.

Thank you in advance!

will be
 
if the procedure is one tantum uses measure to insert points with step 5, then add new vertices with multifunction grip.
 
correction, if the short side is 20 in horizontal (and therefore not in slope) the procedure is not good, you can do so:

- creates two 3dpoly (a long and short side)
- measure on the long side, divide on the short side
- recreate two more 3dpoly hooking to points (before)
- copy the last two to form the rectangle
- unite everything
 
Thank you very much,

the long side is sloped, it has a 0.5 and one at 0.005, I also thought about the dividing, and I had begun precisely in this way, rebuilding a new 3d polyline with the points obtained. I don't really know what the multifunctional "grip" is, maybe I'm a quicker thing than what I tried to do!
Unfortunately, it is not something I have to do once, and the example of the rectangle 200x20 is just an example. I have stretches of km on which I have to do this, with currently spaced summits 500 m.

I try to explain exactly the use I have to do, even if it's superfluous.

I am using a 2d hydraulic modeling software that takes as input the dxfs. in practice traccio on ctr the area I want to model, and every element to which I want to give a diameter of the sediments different from the default one I have to contornare it with a closed 3d polyline whose quota corresponds to the diameter of the sediments that I want to assign. In the shore defenses I must progressively pass from a diameter of 0.005 to 0.5, then I draw a closed 3d polyline that forms an irregular polygon with 2 long (or very long) sides and two shorts. the long sides have the length of the defense in mass (from 200 m to 3-4 km), the short sides have the width of the defense, that is a few tens of m.
the long side portion of polylinea river side will be 0.005 (diameter of bed sediments) and the share of the other long side will be 0.5 (mass diameter that make up the defense)
Once you track all the polylines I need, because the software correctly reads the objects I want to model, these must have the vertices spaced more or less of the same size as the 2d model cells I want to get. As I have to do simulations with cells of 5m, the distance between the vertices of polylinese must be of this order of magnitude.

excuse the massacred description:tongue:

Is there a solution?

Thank you!

will be
 
test this lisp, the 3dpoly should be closed and the sides (horizontal) must be divisible "exactly" for the provided step.
 

Attachments

Thank you very much!!

the lisp works very well, now I just have to "arrotondare the lengths of the sides of my polygons, but compared to the workmanship that I expected before, now it will be a walk! !


:biggrin:
 
Prego.

... now I just have to "round the lengths of the sides of my polygons. . .
It is not quite easy, especially for the inclined traits.
If the 3dpoly always have 4 sides you should create them with the tops at 0,00 altitude and then change the z from property.
better still if you always cover the same with the vertices already at the altitude and then iron for a multiple value of 5.
 
:frown:

Unfortunately my enthusiasm lasted little...it actually works only if the long sides are horizontal and the short ones are orthogonal (in the plane) to the long ones. does not then round the sides lengths to make them divisible for 5. Unfortunately, the polylines that I have to deal with do not have practically any horizontal trait!
 
Please.




It is not quite easy, especially for the inclined traits.
If the 3dpoly always have 4 sides you should create them with the tops at 0,00 altitude and then change the z from property.
better still if you always cover the same with the vertices already at the altitude and then iron for a multiple value of 5.
I'm sorry I saw your answer now....I can send you the file with the shore defenses so you see exactly what it is?
 
Here we go!
you talked about polylinese closed with "2 long (or very long) sides and two short", while in the dwg the sides are multiple.
the sides "corti" measure 24 units, must be brought to 25 or will you divide then for 4 or 6?
I don't know how to solve it, but to think about something it is essential that you attach a "finished" trait that makes you understand the result you want to get.
 
You're right, I've explained badly, in my head I saw them as irregular polygons with two long sides and two shorts, but actually the sides are many more!

in the attached file I made the first at the top right:
- I used the "measure" command to insert a point every 5 m
- I connected the resulting points with a 3d polylinea
- I canceled the points

I actually went wrong a couple of times and I made three 3d polylines instead of one. I need a single one, but I'm not able to combine 3d polylines... and this is another of my problems!

important: it is not necessary that the vertices are equised exactly of 5 m, but that their distance is not greater than 5 m. Moreover it is not necessary to maintain the "old" vertices of the polylinea, the existing corners can also be beveled, it is not a problem. in fact the command "measure" would be perfect if the points that generated became vertices that belong to the polyline.

from this forum I had downloaded a lisp that is called divid2, which divides polylinea into a predetermined number of segments. It would also be good if I could reunite segments in a single polyline, keeping the limits of segments as a top.
 

Attachments

segments created by divid2 can be combined in a single stroke with a mesh, but the subdivisions of the command occur for a measured distance on the development of the polyline, not in the plane. In addition, it maintains the current leadership that can be very close to the new ones.

so... a subdivision in orizzontale of the 3dpoly to (approximately) the step provided, eliminating the existing vertices, could it go?
 
The solution you propose would be great!

However I tried to combine 3d polylines with merge but it does not work. asks me to choose a supported object, "a line, an open polyline, an arc or an elliptical arc is planned. "
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top