Welcome, Guest
Username: Password: Remember me

TOPIC: Creating a closed line from a set of points

Creating a closed line from a set of points 7 years 6 months ago #24230

  • special_20
  • special_20's Avatar
Hello all,

I would like to create a closed line from a set of points and I don't find how to do this. Can you help me ? The idea is to arrange the points precisely by setting their coordinates instead of using the closed line tool of Blue Kenue.

Regards :cheer:
The administrator has disabled public write access.

Creating a closed line from a set of points 7 years 6 months ago #24232

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3632
  • Thank you received: 1010
Hi

It's not very clear for me what you want to do exactly...

You want to create a closed line from a set of points in the sense:
-of an envelope of all points?
-or just a closed line which pass by all points?
-in a precise order?
According to what you want to do exactly, and supposing you have the points as an xyz file from BK, you could create and i2s file by just changing the header.

But you mention that the idea is to arrange points by setting coordinates instead of using closed lines!
If you plan to create a mesh with precise location of node you don't have to use lines, you should use the hard points!

Hope this helps
Christophe
The administrator has disabled public write access.

Creating a closed line from a set of points 7 years 6 months ago #24237

  • special_20
  • special_20's Avatar
Yes the idea was to create a closed line that pass by all the points of the set in the order where I created the points. Then I will just change the header.

But your answer raises a remark that is : to create a mesh with the "T3 mesh generator tool" of Blue Kenue I need a closed line, no ?
The administrator has disabled public write access.

Creating a closed line from a set of points 7 years 6 months ago #24238

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3632
  • Thank you received: 1010
Hi
Yes you need a closed line to define the outline of your mesh!

regards
Christophe
The administrator has disabled public write access.

Creating a closed line from a set of points 7 years 6 months ago #24244

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 702
  • Thank you received: 296
Hi,

Have a look at the documentation for the i2s/i3s file format in appendix A of the manual.
A line is defined as being "closed" if the first and last point are the same. So if you are creating an i2s file with a text editor this is what you need to know.

Alternatively if you just edit the xyz file and provide the appropriate header(s) you can "close" the line inside Blue Kenue by selecting the line with a double click and then right-click to bring up the context menu and select the "Close Selected Line" menu item.

Cheers... Martin
The administrator has disabled public write access.

Creating a closed line from a set of points 6 years 3 months ago #28793

  • meni
  • meni's Avatar
Hi Martin,

When I open the xyz file, I just have points, so there is not a line to select and use the "Close Selected Line" from the menu item. There is a way to do that from the xyz file?

Thanks in advance
Meni
The administrator has disabled public write access.

Creating a closed line from a set of points 6 years 3 months ago #28798

  • Phelype
  • Phelype's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 64
Hello Meni

One way is by editing the file directly.

First, rename the file to change the extension to .i2s.

Then open the file in a text editor and change the second line from:
:FileType xyz ASCII  EnSim 1.0

to
:FileType i2s ASCII  EnSim 1.0

then, after the :EndHeader tag put the number of points of the line. For example, if the file is:
:EndHeader
24.468085106383 44.9172576832151               0
36.5248226950355 29.5508274231678               0
55.2009456264775 41.371158392435               0
47.3995271867612 59.1016548463357               0

change to
:EndHeader
4
24.468085106383 44.9172576832151               0
36.5248226950355 29.5508274231678               0
55.2009456264775 41.371158392435               0
47.3995271867612 59.1016548463357               0

Now just save and open in BlueKenue.
The administrator has disabled public write access.
The following user(s) said Thank You: meni
Moderators: Serrer, a.barton

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.