- Install:
brew install pcl
- Get install location:
brew info pcl
- Copy pcl_viewer into the path:
cp $(PCL_INSTALL_DIR)/pcl_viewer.app/Contents/MacOS/pcl_viewer /usr/local/bin
- Convert PLY to PCD:
pcl_ply2pcd [INFILE] [OUTFILE]
- View the point cloud in pcl viewer with point picking:
pcl_viewer -use-point-picking [PCD_FILE]
- To get the coordinates of a point, “SHIFT+CLICK” on a point. The coordinates are printed in the launching terminal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension URL { | |
static func createDirectory(_ dirName: String) -> URL? { | |
let fileManager = FileManager.default | |
if let documentDirectory = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first { | |
let dirPath = documentDirectory.appendingPathComponent(dirName) | |
if !fileManager.fileExists(atPath: dirPath.path) { | |
do { | |
try fileManager.createDirectory(atPath: dirPath.path, | |
withIntermediateDirectories: true, | |
attributes: nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run in powershell | |
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When you receive "warning: null character(s) ignore", there is a null byte hidden number in the source code. | |
# This is likely the result of creating a file in Visual Studio which defaults to UTF-16LE and trying to read | |
# it back as UTF8. | |
# To check text encoding of the file, run the following and retrieve the `charset` | |
file -I [FILE] | |
# To convert the file to UTF8 (or any other encoding) | |
iconv -f [CURRENT_ENCODING] -t UTF8 [FILE] > temp | |
mv temp [FILE] |
- Import the PCX Unity Package.
- Drag a PLY point cloud into the project. The plugin will automatically convert it to a
GameObject
. This takes some time during which Unity will hang. The resultingGameObject
will be in the same directory as the PLY. - Add the
GameObject
to your scene. - If the point cloud is a right-handed coordinate frame, negate the scale of the Z axis to flip it to Unity's left-handed system. This parameter is accessible through the
Transform
component on theGameObject
. - It may also be necessary to rotate 90 degrees around an axis depending on which axis is "up" in the point cloud coordinate frame.
After updating pyenv (such as through a brew upgrade
), run pyenv rehash
to reset the shim routes. Otherwise, you get errors like:
/Users/[USER]/.pyenv/shims/python2: line 21: /usr/local/Cellar/pyenv/1.2.4/libexec/pyenv: No such file or directory