Surface creation and wire=False

Asked by Chandrashekhar Sirimala

I'm importing a geometry from .stl file using ymport.stl. It gives me list of facets, as shown below,

O.bodies.append(ymport.stl('cylinder.stl', wire=False)) #the geometry is cylindrical shape
I think this will make the facets into surfaces.
But when I'm applying rotation engines (i.e. revolving the imported cylindrical geometry), I'm able to see individual facets revolving.

how can I convert these set of facets into surface.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,

It is always useful to attache / include minimal working example
reproducing your problem, it helps us a lot to solve it :-)

Currently there is nothing like "surface" in Yade, only list of facets..

in your specific case, I would say the problem is in RotationEngine
arguments. Did you use rotateAroundZero=True and zeroPoint parameters? see
[1]

HTH
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.RotationEngine

2013/5/31 Chandrashekhar Sirimala <email address hidden>

> New question #229978 on Yade:
> https://answers.launchpad.net/yade/+question/229978
>
> I'm importing a geometry from .stl file using ymport.stl. It gives me list
> of facets, as shown below,
>
> O.bodies.append(ymport.stl('cylinder.stl', wire=False)) #the
> geometry is cylindrical shape
> I think this will make the facets into surfaces.
> But when I'm applying rotation engines (i.e. revolving the imported
> cylindrical geometry), I'm able to see individual facets revolving.
>
> how can I convert these set of facets into surface.
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Chandrashekhar Sirimala (chandrashekhar-siri) said :
#2

Thank you Jan . Your suggestion to include rotateAroundZero=True and zeroPoint worked.

Revision history for this message
Chandrashekhar Sirimala (chandrashekhar-siri) said :
#3

Thanks Jan Stránský, that solved my question.