We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It uses GeometryPipeline.computeBinormalandTangent. At some point, r = Infinity, causing NaN later down the line https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/GeometryPipeline.js#L1282
r = Infinity
NaN
Demo:
var viewer = new Cesium.Viewer('cesiumContainer'); var scene = viewer.scene; var shape = [new Cesium.Cartesian2(-10000, -10000), new Cesium.Cartesian2(10000, -10000), new Cesium.Cartesian2(10000, 10000), new Cesium.Cartesian2(-10000, 10000)]; var redTube = new Cesium.GeometryInstance({ geometry : Cesium.PolylineVolumeGeometry.createGeometry(new Cesium.PolylineVolumeGeometry({ vertexFormat : Cesium.VertexFormat.ALL, polylinePositions : Cesium.Cartesian3.fromDegreesArray([ 90.0, -30.0, 90.0, -35.0 ]), cornerType: Cesium.CornerType.MITERED, shapePositions: shape })), attributes : { color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.RED) } }); scene.primitives.add(new Cesium.Primitive({ geometryInstances : redTube, asynchronous: false, appearance : new Cesium.DebugAppearance({ attributeName : 'st' }) })); var g = Cesium.PolylineVolumeGeometry.createGeometry(new Cesium.PolylineVolumeGeometry({ vertexFormat : new Cesium.VertexFormat({position: true, normal: true, binormal: true}), polylinePositions : Cesium.Cartesian3.fromDegreesArray([ 90.0, -30.0, 90.0, -35.0 ]), cornerType: Cesium.CornerType.MITERED, shapePositions: shape })); g.attributes.normal = undefined; scene.primitives.add(Cesium.createTangentSpaceDebugPrimitive({ geometry : g, length : 100000.0, }));
The text was updated successfully, but these errors were encountered:
It would be really nice to get #3605 into master (which depends on this). How hard is this going to be to fix?
Sorry, something went wrong.
No branches or pull requests
It uses GeometryPipeline.computeBinormalandTangent.
At some point,
r = Infinity
, causingNaN
later down the linehttps://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/GeometryPipeline.js#L1282
Demo:
The text was updated successfully, but these errors were encountered: