public class ParStreamlines
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PAR_U_MODE_DISTANCE
Configures how the library assigns UV coordinates.
|
static int |
PAR_U_MODE_NORMALIZED_DISTANCE
Configures how the library assigns UV coordinates.
|
static int |
PAR_U_MODE_SEGMENT_FRACTION
Configures how the library assigns UV coordinates.
|
static int |
PAR_U_MODE_SEGMENT_INDEX
Configures how the library assigns UV coordinates.
|
static int |
PARSL_FLAG_ANNOTATIONS
Populates
mesh.annotations |
static int |
PARSL_FLAG_CURVE_GUIPARSL_FLAG_DES
Draws control points
|
static int |
PARSL_FLAG_RANDOM_OFFSETS
Populates
mesh.random_offsets |
static int |
PARSL_FLAG_SPINE_LENGTHS
Populates
mesh.lengths |
static int |
PARSL_FLAG_WIREFRAME
Enables 4 indices per triangle
|
| Modifier and Type | Method and Description |
|---|---|
static long |
nparsl_create_context(long config) |
static void |
nparsl_destroy_context(long ctx) |
static long |
nparsl_mesh_from_curves_cubic(long context,
long spines)
Unsafe version of:
mesh_from_curves_cubic |
static long |
nparsl_mesh_from_curves_quadratic(long context,
long spines)
Unsafe version of:
mesh_from_curves_quadratic |
static long |
nparsl_mesh_from_lines(long ctx,
long spines)
Unsafe version of:
mesh_from_lines |
static long |
nparsl_mesh_from_streamlines(long context,
long advect,
int first_tick,
int num_ticks,
long userdata)
Unsafe version of:
mesh_from_streamlines |
static long |
parsl_create_context(ParSLConfig config) |
static void |
parsl_destroy_context(long ctx) |
static ParSLMesh |
parsl_mesh_from_curves_cubic(long context,
ParSLSpineList spines)
High-level function that tessellates a series of curves into triangles, where each spine is a series of chained cubic Bézier curves.
|
static ParSLMesh |
parsl_mesh_from_curves_quadratic(long context,
ParSLSpineList spines)
High-level function that tessellates a series of curves into triangles, where each spine is a series of chained quadratic Bézier curves.
|
static ParSLMesh |
parsl_mesh_from_lines(long ctx,
ParSLSpineList spines)
Low-level function that generates two triangles for each line segment.
|
static ParSLMesh |
parsl_mesh_from_streamlines(long context,
ParSLAdvectionCallbackI advect,
int first_tick,
int num_ticks,
long userdata)
High-level function that can be used to visualize a vector field.
|
public static final int PAR_U_MODE_NORMALIZED_DISTANCE
PAR_U_MODE_NORMALIZED_DISTANCE - This is the default.PAR_U_MODE_DISTANCE - Non-normalized distance along the curve.PAR_U_MODE_SEGMENT_INDEX - Starts at zero for each curve, counts up.PAR_U_MODE_SEGMENT_FRACTION - 0.0, 1.0 / COUNT, 2.0 / COUNT, etc...public static final int PAR_U_MODE_DISTANCE
PAR_U_MODE_NORMALIZED_DISTANCE - This is the default.PAR_U_MODE_DISTANCE - Non-normalized distance along the curve.PAR_U_MODE_SEGMENT_INDEX - Starts at zero for each curve, counts up.PAR_U_MODE_SEGMENT_FRACTION - 0.0, 1.0 / COUNT, 2.0 / COUNT, etc...public static final int PAR_U_MODE_SEGMENT_INDEX
PAR_U_MODE_NORMALIZED_DISTANCE - This is the default.PAR_U_MODE_DISTANCE - Non-normalized distance along the curve.PAR_U_MODE_SEGMENT_INDEX - Starts at zero for each curve, counts up.PAR_U_MODE_SEGMENT_FRACTION - 0.0, 1.0 / COUNT, 2.0 / COUNT, etc...public static final int PAR_U_MODE_SEGMENT_FRACTION
PAR_U_MODE_NORMALIZED_DISTANCE - This is the default.PAR_U_MODE_DISTANCE - Non-normalized distance along the curve.PAR_U_MODE_SEGMENT_INDEX - Starts at zero for each curve, counts up.PAR_U_MODE_SEGMENT_FRACTION - 0.0, 1.0 / COUNT, 2.0 / COUNT, etc...public static final int PARSL_FLAG_WIREFRAME
public static final int PARSL_FLAG_ANNOTATIONS
mesh.annotationspublic static final int PARSL_FLAG_SPINE_LENGTHS
mesh.lengthspublic static final int PARSL_FLAG_RANDOM_OFFSETS
mesh.random_offsetspublic static final int PARSL_FLAG_CURVE_GUIPARSL_FLAG_DES
public static long nparsl_create_context(long config)
public static long parsl_create_context(ParSLConfig config)
public static void nparsl_destroy_context(long ctx)
public static void parsl_destroy_context(long ctx)
public static long nparsl_mesh_from_lines(long ctx,
long spines)
mesh_from_lines@Nullable public static ParSLMesh parsl_mesh_from_lines(long ctx, ParSLSpineList spines)
public static long nparsl_mesh_from_streamlines(long context,
long advect,
int first_tick,
int num_ticks,
long userdata)
mesh_from_streamlines@Nullable public static ParSLMesh parsl_mesh_from_streamlines(long context, ParSLAdvectionCallbackI advect, int first_tick, int num_ticks, long userdata)
public static long nparsl_mesh_from_curves_cubic(long context,
long spines)
mesh_from_curves_cubic@Nullable public static ParSLMesh parsl_mesh_from_curves_cubic(long context, ParSLSpineList spines)
The first curve of each spine is defined by an endpoint, followed by two control points, followed by an endpoint. Every subsequent curve in the spine is defined by a single control point followed by an endpoint. Only one control point is required because the first control point is computed via reflection over the endpoint.
The number of vertices in each spine should be 4+(n-1)*2 where n is the number of piecewise curves.
Each spine is equivalent to an SVG path that looks like M C S S S.
public static long nparsl_mesh_from_curves_quadratic(long context,
long spines)
mesh_from_curves_quadratic@Nullable public static ParSLMesh parsl_mesh_from_curves_quadratic(long context, ParSLSpineList spines)
The first curve of each spine is defined by an endpoint, followed by one control point, followed by an endpoint. Every subsequent curve in the spine is defined by a single control point followed by an endpoint.
The number of vertices in each spine should be 3+(n-1)*2 where n is the number of piecewise curves.
Each spine is equivalent to an SVG path that looks like M Q M Q M Q.
Copyright LWJGL. All Rights Reserved. License terms.