plotting multiple cylinders with known co-ordinates [closed]












1















How can i plot say 100 cylinders inside a cube. I have their endpoints co-ordinates and diameter,height generated through c++ code.
I need a graphical output ,how can i do that?










share|improve this question













closed as unclear what you're asking by Henrik Schumacher, Niki Estner, anderstood, J. M. is computer-less Jan 6 at 2:51


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    Your queation is not clear. When say "endpoints", do you mean the end points to the axes of the cylinder? Also, do you need help with importing the C++ generated data?

    – m_goldberg
    Dec 29 '18 at 11:32











  • I have the end points (co-ordinates= x1,y1,z1 and x2,y2,z2) of the axis and its diameter. yes , i also need help how to import it from a visual studio- c++ code

    – Arun
    Dec 29 '18 at 12:49
















1















How can i plot say 100 cylinders inside a cube. I have their endpoints co-ordinates and diameter,height generated through c++ code.
I need a graphical output ,how can i do that?










share|improve this question













closed as unclear what you're asking by Henrik Schumacher, Niki Estner, anderstood, J. M. is computer-less Jan 6 at 2:51


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    Your queation is not clear. When say "endpoints", do you mean the end points to the axes of the cylinder? Also, do you need help with importing the C++ generated data?

    – m_goldberg
    Dec 29 '18 at 11:32











  • I have the end points (co-ordinates= x1,y1,z1 and x2,y2,z2) of the axis and its diameter. yes , i also need help how to import it from a visual studio- c++ code

    – Arun
    Dec 29 '18 at 12:49














1












1








1








How can i plot say 100 cylinders inside a cube. I have their endpoints co-ordinates and diameter,height generated through c++ code.
I need a graphical output ,how can i do that?










share|improve this question














How can i plot say 100 cylinders inside a cube. I have their endpoints co-ordinates and diameter,height generated through c++ code.
I need a graphical output ,how can i do that?







plotting






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 29 '18 at 11:14









ArunArun

82




82




closed as unclear what you're asking by Henrik Schumacher, Niki Estner, anderstood, J. M. is computer-less Jan 6 at 2:51


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by Henrik Schumacher, Niki Estner, anderstood, J. M. is computer-less Jan 6 at 2:51


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1





    Your queation is not clear. When say "endpoints", do you mean the end points to the axes of the cylinder? Also, do you need help with importing the C++ generated data?

    – m_goldberg
    Dec 29 '18 at 11:32











  • I have the end points (co-ordinates= x1,y1,z1 and x2,y2,z2) of the axis and its diameter. yes , i also need help how to import it from a visual studio- c++ code

    – Arun
    Dec 29 '18 at 12:49














  • 1





    Your queation is not clear. When say "endpoints", do you mean the end points to the axes of the cylinder? Also, do you need help with importing the C++ generated data?

    – m_goldberg
    Dec 29 '18 at 11:32











  • I have the end points (co-ordinates= x1,y1,z1 and x2,y2,z2) of the axis and its diameter. yes , i also need help how to import it from a visual studio- c++ code

    – Arun
    Dec 29 '18 at 12:49








1




1





Your queation is not clear. When say "endpoints", do you mean the end points to the axes of the cylinder? Also, do you need help with importing the C++ generated data?

– m_goldberg
Dec 29 '18 at 11:32





Your queation is not clear. When say "endpoints", do you mean the end points to the axes of the cylinder? Also, do you need help with importing the C++ generated data?

– m_goldberg
Dec 29 '18 at 11:32













I have the end points (co-ordinates= x1,y1,z1 and x2,y2,z2) of the axis and its diameter. yes , i also need help how to import it from a visual studio- c++ code

– Arun
Dec 29 '18 at 12:49





I have the end points (co-ordinates= x1,y1,z1 and x2,y2,z2) of the axis and its diameter. yes , i also need help how to import it from a visual studio- c++ code

– Arun
Dec 29 '18 at 12:49










1 Answer
1






active

oldest

votes


















3














First I have to define some cylinder points



n=100;
pi = RandomReal[{0, 1}, {n, 2, 3}] (*n pairs off points*)


now create a list of cylinders



Graphics3D[Map[Cylinder[#, RandomReal[{0, .1}]] &, pi]]


enter image description here



That's it!






share|improve this answer
























  • Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

    – Arun
    Dec 29 '18 at 12:50








  • 2





    I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

    – Ulrich Neumann
    Dec 29 '18 at 17:39




















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














First I have to define some cylinder points



n=100;
pi = RandomReal[{0, 1}, {n, 2, 3}] (*n pairs off points*)


now create a list of cylinders



Graphics3D[Map[Cylinder[#, RandomReal[{0, .1}]] &, pi]]


enter image description here



That's it!






share|improve this answer
























  • Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

    – Arun
    Dec 29 '18 at 12:50








  • 2





    I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

    – Ulrich Neumann
    Dec 29 '18 at 17:39


















3














First I have to define some cylinder points



n=100;
pi = RandomReal[{0, 1}, {n, 2, 3}] (*n pairs off points*)


now create a list of cylinders



Graphics3D[Map[Cylinder[#, RandomReal[{0, .1}]] &, pi]]


enter image description here



That's it!






share|improve this answer
























  • Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

    – Arun
    Dec 29 '18 at 12:50








  • 2





    I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

    – Ulrich Neumann
    Dec 29 '18 at 17:39
















3












3








3







First I have to define some cylinder points



n=100;
pi = RandomReal[{0, 1}, {n, 2, 3}] (*n pairs off points*)


now create a list of cylinders



Graphics3D[Map[Cylinder[#, RandomReal[{0, .1}]] &, pi]]


enter image description here



That's it!






share|improve this answer













First I have to define some cylinder points



n=100;
pi = RandomReal[{0, 1}, {n, 2, 3}] (*n pairs off points*)


now create a list of cylinders



Graphics3D[Map[Cylinder[#, RandomReal[{0, .1}]] &, pi]]


enter image description here



That's it!







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 29 '18 at 11:31









Ulrich NeumannUlrich Neumann

7,770516




7,770516













  • Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

    – Arun
    Dec 29 '18 at 12:50








  • 2





    I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

    – Ulrich Neumann
    Dec 29 '18 at 17:39





















  • Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

    – Arun
    Dec 29 '18 at 12:50








  • 2





    I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

    – Ulrich Neumann
    Dec 29 '18 at 17:39



















Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

– Arun
Dec 29 '18 at 12:50







Thanks for your answer. But, I dont need random generation, I have generated it using some constraints in visual studio and stored the details of it a struct. How should i import it and how to plot it after that. Thanks in adv

– Arun
Dec 29 '18 at 12:50






2




2





I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

– Ulrich Neumann
Dec 29 '18 at 17:39







I know that you have generated the cylinder data , but you didn't provide it in your question. With my answer you now know how to plot the cylinders in Mathemathica. If you also need assistance in importing data you should post it in your question and provide sufficient information.

– Ulrich Neumann
Dec 29 '18 at 17:39





Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix