Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimfoltz/a2s
command line assimp to sketchup converter (no textures)
https://github.com/jimfoltz/a2s
assimp converter dae obj ply sketchup stl
Last synced: 5 days ago
JSON representation
command line assimp to sketchup converter (no textures)
- Host: GitHub
- URL: https://github.com/jimfoltz/a2s
- Owner: jimfoltz
- License: mit
- Created: 2020-03-01T20:56:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T14:15:45.000Z (about 1 year ago)
- Last Synced: 2024-08-02T18:36:19.314Z (3 months ago)
- Topics: assimp, converter, dae, obj, ply, sketchup, stl
- Language: C++
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# a2s
The __a2s__ command utilizes `assimp` to convert 3d mesh files to SketchUp files.
See [here](https://assimp-docs.readthedocs.io/en/latest/about/introduction.html) for a list of formats supported by assimp.
This is a basic converter which relies completely on the capabilities of
`assimp` for the conversion. If `assimp` can not handle the conversion, no
further attempt is made. Many formats result in poor or unexpected models.
Textures are not imported for any format. Scale is fixed and set to a larger value to
over-come SketchUp's "small geometry" limitation.`.stl`, `.ply`, and `.obj` files generally convert well, which was the original goal of the code.
`.dxf` files do not typically convert well if at all. The exceptions appear to
be dxf's exported using `3DFACE` entities, and PolyFaceMesh variant of
`POLYLINE` entiites.## Usage
On the command line...
> a2s input-file.ext
Creates a file named `input-file.ext.skp` in the same folder.
## Download
See the Release page for the latest download. Unzip the files, then move them to a directory in your `%PATH%.`
## Build Requirements
* [cmake](https://cmake.org/)
* ~~[premake5](https://github.com/premake/premake-core)~~ use cmake.
* [SketchUp SDK](https://developer.sketchup.com)
* A local clone of the `assimp` repository. [assimp](https://github.com/assimp/assimp)
* GNU `g++` compiler tools, bin utils, and `make` for Windows. See Note.## Build Instructions
* set the `ASSIMP_SRC` variable in the `build-assimp.bat` file to your assimp source directory.
* run the `build-assimp.bat` file. This may take a few minutes.
* set the `SKETCHUP_SDK` and `ASSIMP` variable in the `Makefile`
* run `make`## Install
Once built, copy the `a2s.exe` file and the following 2 `dll` files to a folder on your `%PATH%`
* SketchUpAPI.dll
* SketchUpCommonPreferences.dll## Notes
I use [scoop](https://scoop.sh/) to maintain the required dev tools on Windows.
__a2s__ defaults to using a SketchUp 8 file. Edit the `main.cpp` file if you want to change the default.