Dieterich

Cylinder edit vertices on top

Recommended Posts

Hi! thanks!

I have used the function EditMesh for tests...

I don't know how I can do to create rings with vertices at the top, to create an elevation impression of grain in my units...

what can I do?

Share this post


Link to post
Share on other sites

Ohhh I got you, I miss read the post!  I am out of town at the moment, give me to this evening if I remember when I get to the hotel then I got you.  This is actually really easy!

 You would use an updatable disc and a cylinder to accomplish this I would imagine. 

Share this post


Link to post
Share on other sites

As I said, you could do a curved path in the upper part http://www.babylonjs-playground.com/#MYAL6U#10

and you could also add as many steps as you need on the lower part, not necessarily all aligned together, just make some tests to get the wanted shape

 

this one reminds me something but I can't tell what : http://www.babylonjs-playground.com/#MYAL6U#11 :D

Share this post


Link to post
Share on other sites

@jerome I thank you all the time for your dedication to helping me. creative answer #11, 😂😆

well, we're almost reaching for what I really need.

It may be difficult for me to express myself here, but in fact I need to use different levels that go up and down at different points in an arc/radius

see the image below:

red dot = N cables
circle Blue = N arcs
line gray = Surface that can go up/down depending on the product level

I do not know if there is a slightly different shape instead of curves?

tanx dude!

img-topview-product-level.png

Share this post


Link to post
Share on other sites

@Dieterich a belated welcome to the forum from me. I think I am right in saying that you will only ever get a pointed top to the grain using a tube because the cap uses a barycenter. Using a bezier surface you can get a more curved top, however the issue is that you cannot get a true circle with a bezier surface. In the following PG the boundary control points are fixed to form an approximate circle lying on a sloping plane. The central control points, indexes 1, 1, 1, 2, 2, 1, 2, 2 are changed in an animation to show the different types of top you could get. The equation to vary the inner control points is not the only one to use on these points. Hope this is of use

https://www.babylonjs-playground.com/#KT9EE7#7

Share this post


Link to post
Share on other sites

Well, I'm impressed with all answer's. Each made me learn something about the Babylon.js, and getting closer and closer to what I need. 

@JohnK how up and down the center point? and how create more points?

I have only this points 

controls[1][1].y = 6;
controls[1][2].y = 6;
controls[2][1].y = 7;
controls[2][2].y = 7;

 

@Pryme8 I have not clarified my doubts yet.

thank you so much

Share this post


Link to post
Share on other sites
30 minutes ago, Dieterich said:

how up and down the center point? and how create more points?

A bezier surface only has 16 control points https://en.m.wikipedia.org/wiki/Bézier_surface

https://www.babylonjs-playground.com/#KT9EE7#3

This was an idea for the grain a tube is still best for the silo.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.