PVGeo
wblong_cs
GIS,CAD ,3D ,BIM
展开
-
Binder - PVGeo-Examples
在Binder中运行PVGeo-Examples(初始化阶段慢)https://mybinder.org/v2/gh/wblong/PVGeo-Examples-Copy.git/master可交互式测试:PVGeo-Examples 1.0 - WelcomePVGeo-Examples 1.1 - Using the pyvista PackagePVGeo-Examples 2.0 - PVGeo+DiscretizePVGeo-Examples 2.1 - Loading-Shapef原创 2020-07-30 15:32:12 · 167 阅读 · 0 评论 -
Binder - HelloWorld
Binder能做什么?Binder提供代码以及执行它的硬件和软件的服务。创建仓库在GitHub创建仓库"my-first-binder"确定仓库是public不要忘记初始化README通过Web界面创建一个名为hello.py的文件,添加内容print(“ Hello from Binder!”)并提交给master分支使用Binder启动仓库打开 https://mybinder.org在"GitHub repo or URL" 输入框中,键入新建仓库地址:https原创 2020-07-30 14:38:40 · 257 阅读 · 0 评论 -
PVGeo - Read Tensor Mesh
"""Read Tensor Mesh~~~~~~~~~~~~~~~~Read a UBC tensor mesh file"""# sphinx_gallery_thumbnail_number = 1import PVGeoimport pyvistafrom pyvista import examples################################################################################ Downloa原创 2020-07-30 10:16:14 · 262 阅读 · 4 评论 -
PVGeo - vscode
搭建vscode python环境克隆PVGeo副本(添加示例数据) https://github.com/wblong/PVGeo-Copy.gitvscode 演示PVGeo Demo原创 2020-07-29 18:35:14 · 282 阅读 · 0 评论 -
PVGeo - Extract Topography
import pyvistafrom PVGeo.model_build import CreateTensorMeshfrom PVGeo.grids import ExtractTopographyimport os################################################################################ For the grid data set, let's use one of the Model Building原创 2020-07-29 18:09:28 · 300 阅读 · 0 评论 -
PVGeo - Extract Points
提取点集"""Extract Points~~~~~~~~~~~~~~This example will demonstrate how to extract the points and PointData ofany input data set that has valid PointData into a `vtkPolyData` object.This example demos :class:`PVGeo.filters.ExtractPoints`"""# sphinx_原创 2020-07-28 11:08:14 · 245 阅读 · 0 评论 -
PVGeo Array Math
vtk属性数组的数学运算"""Array Math~~~~~~~~~~This example will demonstrate how to perform a mathematical operationbetween two input arrays for any given source.This filter allows the user to select two input data arrays on which to performmath operations. T原创 2020-06-30 22:25:07 · 203 阅读 · 0 评论 -
PVGeo Append Cell Centers
将单元中心作为属性添加到数据当中"""Append Cell Centers~~~~~~~~~~~~~~~~~~~This example will demonstrate how to append a dataset's cell centers as a length 3 tuple array.This example demonstrates :class:`PVGeo.filters.AppendCellCenters`"""import pyvistafrom PVGeo原创 2020-06-29 22:18:17 · 190 阅读 · 0 评论 -
PVGeo 离散点集连接成线(最短路径)
PVGeo.filters.AddCellConnToPoints用VTK_LINE 和VTK_POLYLINE把离散的点集联通起来。可以按照点的索引顺序连接也可以按照邻近的距离。按照邻近距离进行连接是最合理恰当的。"""Add Cell Connectivity To Points~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Example for :class:`PVGeo.filters.AddCellConnToPoints`This filter will add *原创 2020-06-28 22:19:27 · 1715 阅读 · 4 评论 -
PVGeo-Examples 2.2 - omfvtk
import pyvistaimport omfvistapyvista.set_plot_theme('document')project = omfvista.load_project('data/test_file.omf')projectInformationBlocksMultiBlockValuesN Blocks9X Bounds443941.105, 447059.611Y Bounds491941.536, 495059.859Z Bounds2330.000,原创 2020-06-26 18:36:02 · 362 阅读 · 0 评论 -
PVGeo-Examples 2.1 - Loading-Shapefiles-To-VTK
import shapefileimport numpy as npimport vtkimport pyvista# sklearn's KDTree is fast: use it if available# Scipy also also a good KDTreefrom sklearn.neighbors import KDTree as Tree# Define conveinance functions for converting shape files to VTK o原创 2020-06-26 18:32:09 · 340 阅读 · 0 评论 -
PVGeo-Examples 2.0 - PVGeo+Discretize
PVGeo-DiscretizeThis notebook demonstrates how to pair PVGeo and discretize for simple processing routines.This notebook is outlined into four sections:Introduction to PVGeoOverview of new VTK interface in discretizePairing PVGeo and discretizeExamp转载 2020-06-26 18:26:05 · 1492 阅读 · 0 评论 -
PVGeo-Examples 1.1 - Using the pyvista Package
WIP: Using the pyvista PackageThis notebook is a work in progress to demo how PVGeo can be used with pyvista for creating integrated visualizations directly in a Python environment. At this time, the 3D rendering is perfromed in a separate window and we h原创 2020-06-26 18:10:10 · 803 阅读 · 0 评论 -
PVGeo-Examples 1.0 - Welcome
import PVGeoimport numpy as npimport pandas as pdimport pyvistaprint('NumPy Version: %s' % np.__version__)print('PVGeo Version: %s' % PVGeo.__version__)print('pyvista Version: %s' % pyvista.__version__)NumPy Version: 1.18.5PVGeo Version: 2.1.0py原创 2020-06-26 18:00:29 · 555 阅读 · 0 评论