Stream: brlcad

Topic: myscript


view this post on Zulip Thusal Ranawaka (May 23 2020 at 16:19):

@Sean I managed to create sph rcc and torusing in command. And I used the sed command to find the parameters of arb8 and enter the x y z axes but still not able to make arb8 completely, but the sed command make it easier to get me an idea and sometimes it makes some weird arb8's too. :smile:

view this post on Zulip Thusal Ranawaka (May 23 2020 at 16:23):

@Sean Look-> MGED-7.26.0-Graphics-Window-id_0-in.g-Upper-Right-5_23_2020-9_52_53-PM.png :grinning:

view this post on Zulip Thusal Ranawaka (May 23 2020 at 16:24):

MGED-7.26.0-Command-Window-id_0-in.g-Upper-Right-5_23_2020-9_52_56-PM.png :laughing:

view this post on Zulip Daniel Rossberg (May 23 2020 at 16:39):

Make the first 4 points with a z-coordinate of 0 and the next 4 points with a z-coordinate of 0.5.

view this post on Zulip Thusal Ranawaka (May 23 2020 at 16:40):

I will try.

view this post on Zulip Sean (May 23 2020 at 16:49):

@Thusal Ranawaka it will let you create invalid arb8, so you do have to make sure your points are in the right order. you specify four points on the bottom face, then four points on the top face.

view this post on Zulip Thusal Ranawaka (May 23 2020 at 17:39):

@Sean @Daniel Rossberg I tried what you said, but it went wrong probably my fault and I didn't have much time. I will try more tomorrow and give you the results.:+1:

view this post on Zulip Thusal Ranawaka (May 23 2020 at 17:41):

Also when you are making a arb8 it only asks the parameters of the x y z axes in the 8 points and it does not ask where the object should place in the graphics window.

view this post on Zulip Sean (May 23 2020 at 17:49):

@Thusal Ranawaka you really should redo the mged tutorial as you don't seem to understand. it's okay, it's a tough concept if you've never done it before.

it would make no sense for the 'in' command to specify placement in the graphics window because that's just a view into the world. you control that view and can change it however you like completely independently of any geometry. The geometry has a position in the world, and that is what you specify with the in command. You're specifying where it's at, not how it looks in the graphics window.

Think of the graphics window like looking through a camera. The window on your computer is just what you see through the camera. The camera can be pointed and moved around anywhere. That's the view.

When you create geometry with the 'in' command, that has nothing to do with the camera. You are creating something somewhere in the world. If you want to see that thing you made, you might need to point the camera at it if it's not already, but it has no connection to the thing you're creating, the objects you're modeling.

view this post on Zulip Thusal Ranawaka (May 24 2020 at 15:47):

@Sean I managed to create arb8 successfully and today I added some several objects to myscript.txt and I went through the MGED tutorial too. Then, I remembered some commands that I've forgotten past couple of months.

view this post on Zulip Thusal Ranawaka (May 24 2020 at 15:49):

@Sean @Daniel Rossberg Look -> This is the present status of myscript.txt

view this post on Zulip Sean (May 24 2020 at 19:42):

@Thusal Ranawaka that's coming along well!

view this post on Zulip Sean (May 24 2020 at 19:43):

it might help to create a "halfplane" aka "hf" object at 0 0 0 with a normal pointing up (0,0,1) so you can see all your objects on a "ground"

view this post on Zulip Thusal Ranawaka (May 25 2020 at 15:30):

@Sean I created all the Arbs and half of the Cones and Cylinders. myscript.txt

view this post on Zulip Thusal Ranawaka (May 25 2020 at 15:31):

Sean said:

it might help to create a "halfplane" aka "hf" object at 0 0 0 with a normal pointing up (0,0,1) so you can see all your objects on a "ground"

I will look on to that too.

view this post on Zulip Thusal Ranawaka (May 27 2020 at 05:19):

@Sean I created all the arbs and the cones I will send the txt file soon.

view this post on Zulip Thusal Ranawaka (May 27 2020 at 05:19):

Because I am chatting on my phone.

view this post on Zulip Thusal Ranawaka (May 27 2020 at 16:38):

@Sean @Daniel Rossberg This is the progress myscript.txt

view this post on Zulip Daniel Rossberg (May 27 2020 at 17:00):

Thusal Ranawaka said:

Sean Daniel Rossberg This is the progress myscript.txt

Hmm, I'm getting rt_arbn_plot() errors with your script.

view this post on Zulip Daniel Rossberg (May 27 2020 at 17:06):

see e.g. https://brlcad.org/wiki/Creating_and_editing_arbn_primitives

view this post on Zulip Thusal Ranawaka (May 27 2020 at 17:11):

@Daniel Rossberg Yeah. It shows some errors but it still creates the object.

view this post on Zulip Thusal Ranawaka (May 27 2020 at 17:14):

@Daniel Rossberg I looked at the link you mentioned above and I'll try it tomorrow because it's nearly midnight to ours.

view this post on Zulip Daniel Rossberg (May 27 2020 at 18:05):

There you can find an example which you can use too ;)

view this post on Zulip Thusal Ranawaka (May 28 2020 at 03:05):

@Daniel Rossberg Yes. I saw it. ;)

view this post on Zulip Thusal Ranawaka (Jun 02 2020 at 07:37):

Hey @Sean I created all the Arbs and the Cylinders, but I couldn't finish all the objects because of online lessons and school assignments. Look-> myscript.txt

view this post on Zulip Sean (Jun 02 2020 at 07:44):

@Thusal Ranawaka that's still progress! good on you. do you have a list of all the entities remaining?

view this post on Zulip Thusal Ranawaka (Jun 02 2020 at 12:20):

Sean said:

Thusal Ranawaka that's still progress! good on you. do you have a list of all the entities remaining?

@Sean Not really.

view this post on Zulip Thusal Ranawaka (Jun 04 2020 at 15:03):

@Sean As you can see myscript.txt present status of my script. And these are the objects that I create,
Arbs
*arb4
*arb5
*arb6
*arb7
*arb8
*arbn
Cones and Cylinders
*rcc
*rec
*rhc
*rpc
*tec
*tgc
*trc
Ellipsoids
*ehy
*sph
Other
*tor

view this post on Zulip Sean (Jun 04 2020 at 15:04):

Can you get a list of everything? That'd help keep track, might have some examples I could point to too.

view this post on Zulip Thusal Ranawaka (Jun 04 2020 at 15:10):

@Sean These are the objects that I have not create,
Ellipsoids
*ell
*ell1
*epa
Other
*ars
*dsp
*eto
*extrude
*half
*metaball
*part
*pipe
*sketch
*bot
*nmg
*binunif

view this post on Zulip Sean (Jun 04 2020 at 16:44):

@Thusal Ranawaka how did you come up with that list?

view this post on Zulip Thusal Ranawaka (Jun 04 2020 at 17:13):

@Sean What do you mean?

view this post on Zulip Sean (Jun 04 2020 at 17:14):

I mean how did you figure out that those are objects you have not created yet?

view this post on Zulip Thusal Ranawaka (Jun 04 2020 at 17:17):

Because all the objects that I had created is on myscript.txt and any object that hasn't in it are not created. @Sean

view this post on Zulip Sean (Jun 04 2020 at 17:24):

but how do you know the objects and their names? where did you learn about ell1 and binunif for example?

view this post on Zulip Thusal Ranawaka (Jun 04 2020 at 17:34):

@Sean I took the names from the create option in MGED Command Window there you can see all the object types.
But I only know their names I don't know the shape of it until I create one.

view this post on Zulip Thusal Ranawaka (Jun 04 2020 at 17:34):

:)

view this post on Zulip Sean (Jun 04 2020 at 18:07):

That's a good start. You can see if there are any more not listed on the Create menu from this list: https://brlcad.org/wiki/BRL-CAD_Primitives

view this post on Zulip Sean (Jun 04 2020 at 18:08):

Also from this list: http://code.svn.sourceforge.net/p/brlcad/code/brlcad/trunk/src/librt/primitives/table.cpp

view this post on Zulip Thusal Ranawaka (Jun 05 2020 at 12:45):

Hi @Daniel Rossberg I recorrect the rt_arbn_plot errors.

view this post on Zulip Thusal Ranawaka (Jun 05 2020 at 13:36):

@Sean @Daniel Rossberg I created all the Arbs, Cones and Cylinders and Ellipsoids. :tada:

view this post on Zulip Thusal Ranawaka (Jun 05 2020 at 13:38):

@Sean @Daniel Rossberg Look myscript.txt . Now have to do the Other Solids. :wink:

view this post on Zulip Daniel Rossberg (Jun 05 2020 at 15:03):

I looks nice :grinning:
Did you know that if you want to shift an arb8 by, say, 3 in x direction, you can do this by adding 3 to every x coordinate during its creation?

view this post on Zulip Thusal Ranawaka (Jun 05 2020 at 15:04):

Nice :happy:

view this post on Zulip Thusal Ranawaka (Jun 08 2020 at 16:59):

@Sean Hi have a look at myscript.txt I created tor, eto and metaball.

view this post on Zulip Thusal Ranawaka (Jun 08 2020 at 17:01):

But the other objects are seem to be little tougher to make.

view this post on Zulip Thusal Ranawaka (Jun 08 2020 at 17:01):

I am looking on to the BRL-CAD Docs > Primitives section.

view this post on Zulip Thusal Ranawaka (Jun 08 2020 at 17:03):

@Sean Currently working on extrude. It reminds me a task that I completed during GCi. :slight_smile: :grinning_face_with_smiling_eyes:

view this post on Zulip Sean (Jun 09 2020 at 14:54):

@Thusal Ranawaka Your script is coming along fantastically. If you rename the file to something meaningful like "primitives.tcl" and include a header on the file (you can run "sh/header.sh pd primitives.tcl" to mark it as public domain for example), it's probably in good enough shape to get added to the main repository as an integration test.

view this post on Zulip Sean (Jun 09 2020 at 14:55):

and can be updated as you add more primitives.

view this post on Zulip Sean (Jun 09 2020 at 14:58):

It looks like the metaball example is going to need some work. It's dumping a slew of errors for me about rt_metaball_point_value_metaball not being implemented. Probably needs a different code on the 'in' command line.

view this post on Zulip Sean (Jun 09 2020 at 15:00):

You might also want to check the "top" and "left" views to see how they objects are positioned with respect to each other. They're not presently on a ground plane, all sort of positioned randomly in space. Might look better to put them into a grid or have them all on a flat plane.


Last updated: Oct 09 2024 at 00:44 UTC