Répondre à : Creating a curve using text files

Accueil Forums Créer avec IanniX Creating a curve using text files Répondre à : Creating a curve using text files

#5510
Gill
Invité

Thank you, I followed your instructions, and the text file shows me the relevant code which is great, but how can I input my list of coordinates without hand typing them all?

The code for the curve points in the text file I created from copying the curve looks like this:

var points1 = [
{x: 0, y: 0, z: 0, c1x: 0, c1y: 0, c1z: 0, c2x: 0, c2y: 0, c2z: 0},
{x: 0, y: 0.0164766, z: 0, c1x: 0, c1y: 0.00329532, c1z: 0, c2x: -0.00329532, c2y: -0.0131812, c2z: 0}, etc…

But my textfiles are just lists of numbers. Is there a way to input this in the correct syntax?

Thanks again,

Gill


© IanniX Association

Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos