Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Apple iPhone/iPad/iPod

Draw a line between two points

iOS Development and xCode questions

Draw a line between two points

Postby d4dhanuj » 14 Feb 2012, 06:10

Can any one tell me how to draw a line between two points, if the points are given.
d4dhanuj
Fresh Boarder
Fresh Boarder
 
Posts: 18

Re: Draw a line between two points

Postby Markuzzzz » 14 Feb 2012, 07:49

You can use curves to draw simple lines, if you want to create a line using a brush I would recommend using curves icw. pixelmaps. Check out the 3d paint sample of ShiVa.

Markus
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: Draw a line between two points

Postby giggsy » 14 Feb 2012, 07:57

I think there's also debug.drawLine, but it's intended to be used for debugging (not sure about speed ;) )
Or as Markuzzzz said, shape.addCurvePoint (or so)
Or use the mesh API and create your own plane if it's not for debugging but production ...
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1105
Location: Austria

Re: Draw a line between two points

Postby d4dhanuj » 27 Feb 2012, 12:30

can you give me an example for using curves to draw a line
d4dhanuj
Fresh Boarder
Fresh Boarder
 
Posts: 18


Return to Apple iPhone/iPad/iPod