JavaFX and Processing 3 P3D

Create a class for each app.

Launch one from the other (i.e. the 3D sketch from the JavaFX main app).

P3DSketch sketch2

public void setup() {
	sketch2 = new P3DSketch();
	PApplet.runSketch(new String[] {}, sketch2);
}

Then you can set/refer to variables of the class.

sketch2.arrayData = .....