Code Monkey home page Code Monkey logo

ocxreader's People

Contributors

carstenzerbst avatar ozanozanozan avatar paulbuechner avatar skfcz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ocxreader's Issues

Restricted surface from non-planar surfaces (plate extraction)

Description

Currently, plate extraction features only work for planar surfaces. When trying to restrict a given non-planar surface (TopoDS_Shell) with a given contour (TopoDS_Wire), the surface extraction fails due to improper imprinting of the given contour.
grafik

Problem Statement/Justification

Surface extraction should be supported for all shape types, not just for planar surfaces.

Proposed Solution or API

Quaoar stated:

  1. Prepare the input contour to make it composed of splines instead of polylines. We had polylines mainly because it was defined like that in the target system (ship hull modeling system, where plates were captured for subsequent unfolding). With split-by-continuity you can turn it into a wire with C1 edges.
  2. Imprint the prepared contour onto the shell. Here we implemented this Contour Capture algorithm mentioned in the link above. You can try using "General Fuse" operator of OpenCascade like here: https://gitlab.com/ssv/AnalysisSitus/-/blob/master/src/asiAlgo/auxiliary/asiAlgo_Utils.cpp#L3486. Use 0.1 as a fuzzy tolerance for Booleans
  3. Once the contour is imprinted, it's necessary to filter out all faces lying outside the contour. This can be done by properly iterating the imprinted edges:
    1. Find the center point of the contour and the face closest to this center point. This would be your starting face.
    2. Iterate over the neighbor faces until you reach the imprinted contour bounds (Boolean operation would return you the images of those edges, so you can check if your next face contains these edges or not to decide whether to stop propagation).

Alternatives

No response

Additional Information

Continue here: Analysis Situs Forum

Wrong Geom_BSplineCurve (NURBS Curve) when returning from OCAF

Description

Currently, after creating a Geom_BSplineCurve and returning it as TopoDS_Wire to save into OCAF document, a false representation of the given curve is exported to STEP:
grafik

Note: No issues seem to occur when exporting the curve directly after it was created.

Steps to reproduce

  1. Run the STEP Export with the following test data: Aveva-OHCM-MidShip_V285.3docx
  2. Open the created .stp file and view Panel (ID51)

OCXReader Version

0.1.0

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

Continue here: Analysis Situs Forum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.