在 cesium 项目中使用 hermitespline,它返回给我一个错误,说 Cartesian3 没有定义。有人可以帮我出什么问题以及如何包含这个笛卡尔3并纠正这个错误。
关于 hermitespline 的文档:- http://cesium.agi.com/Cesium/Build/Documentation/HermiteSpline.html
关于笛卡尔3的文档:- http://www4.ncsu.edu/~ljsox/cesium/Cesium-b12/Build/Documentation/Cartesian3.html
当我尝试将 hermitespline 中给出的示例代码插入以下代码时,它给了我一个错误:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <!-- Use Chrome Frame in IE -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="description" content="Use the Cesium Widget to start building new applications or easily embed Cesium into existing applications.">
<meta name="cesium-sandcastle-labels" content="Beginner">
<title>Cesium Demo</title>
<script type="text/javascript" src="Sandcastle-header.js"></script>
<script type="text/javascript" src="../../Build/CesiumUnminified/Cesium.js"></script>
<script type="text/javascript" src="Sandcastle-warn.js"></script>
</head>
<body class="sandcastle-loading" data-sandcastle-bucket="bucket-plain.html" data-sandcastle-title="Cesium (standalone)">
<style>
@import url(templates/bucket.css);
</style>
<div id="cesiumContainer" class="fullSize"></div>
<script id="cesium_sandcastle_script">
var widget = new Cesium.CesiumWidget('cesiumContainer');
</script>
</body>
</html>
如果有人可以解决此问题,那将很有帮助。